How does one use multiple persistent variables?

6 Ansichten (letzte 30 Tage)
Nitesh Panchal
Nitesh Panchal am 24 Okt. 2016
Beantwortet: Jan am 25 Okt. 2016
I need to store t t-1 and t-2 as different variables

Antworten (2)

Walter Roberson
Walter Roberson am 25 Okt. 2016
persistent t t_minus_1 t_minus_2

Jan
Jan am 25 Okt. 2016
Or
persistent t
persistent t_minus_1
persistent t_minus_2
Walter's and my answer are trivial. Perhaps your forgot to mention a difficult problem.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by