How does one use multiple persistent variables?
이전 댓글 표시
I need to store t t-1 and t-2 as different variables
답변 (2개)
Walter Roberson
2016년 10월 25일
persistent t t_minus_1 t_minus_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.
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!