How does one use multiple persistent variables?

14 ビュー (過去 30 日間)
Nitesh Panchal
Nitesh Panchal 2016 年 10 月 24 日
回答済み: Jan 2016 年 10 月 25 日
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 Center および File ExchangeWhos についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by