Mantain a variable for the next cycle

1 view (last 30 days)
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)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!