How does one use multiple persistent variables?
14 次查看(过去 30 天)
显示 更早的评论
I need to store t t-1 and t-2 as different variables
0 个评论
回答(2 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!