How to rename all instances of persistent variables?

10 ビュー (過去 30 日間)
Ferencz Bordas
Ferencz Bordas 2019 年 7 月 17 日
コメント済み: Ferencz Bordas 2019 年 7 月 17 日
Hello,
actually it is possible to rename all instances of a variable by pressing "shift + enter", but for some reason this doesn't work for persistent variables. I'm using R2016b, so may this be an issue of matlab release?
Thanks and regards,
Ferencz
  2 件のコメント
Stephen23
Stephen23 2019 年 7 月 17 日
編集済み: Stephen23 2019 年 7 月 17 日
This explains why:
Although written for clear the same explanation applies to persistent and any other functions using command syntax: https://www.mathworks.com/help/matlab/matlab_prog/command-vs-function-syntax.html
Ferencz Bordas
Ferencz Bordas 2019 年 7 月 17 日
OK, that's a pity ...
Thanks for your quick reply!

サインインしてコメントする。

採用された回答

Jan
Jan 2019 年 7 月 17 日
編集済み: Jan 2019 年 7 月 17 日
Simply remove the persistent command temporarily, rename the variable and insert persistent again.
You can open the file e.g. in NotePad++ and perform the replacement there.
  1 件のコメント
Ferencz Bordas
Ferencz Bordas 2019 年 7 月 17 日
wow, nice move. Thanks a lot!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVariables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by