How to rename all instances of persistent variables?

조회 수: 16 (최근 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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Variables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by