How does one use multiple persistent variables?

14 次查看(过去 30 天)
I need to store t t-1 and t-2 as different variables

回答(2 个)

Walter Roberson
Walter Roberson 2016-10-25
persistent t t_minus_1 t_minus_2

Jan
Jan 2016-10-25
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.

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by