MATLAB Answers

How to rename all instances of persistent variables?

3 views (last 30 days)
Ferencz Bordas
Ferencz Bordas on 17 Jul 2019
Commented: Ferencz Bordas on 17 Jul 2019
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

Accepted Answer

Jan
Jan on 17 Jul 2019
Edited: Jan on 17 Jul 2019
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 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.