Mantain a variable for the next cycle

2 views (last 30 days)
luca
luca on 25 Sep 2019
Answered: Walter Roberson on 25 Sep 2019
Hi,
I've generate a code and I want to run the code different times. Everytime I run the code I would like to mantain a variable in the workspace that I need for the following run.
May someone explain me how to do it?

Accepted Answer

Walter Roberson
Walter Roberson on 25 Sep 2019
See persistent()

More Answers (0)

Tags

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by