MATLAB Answers

0

How to rename all instances of persistent variables?

Asked by Ferencz Bordas on 17 Jul 2019
Latest activity Commented on by Ferencz Bordas on 17 Jul 2019
Accepted Answer by Jan
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 Comments

OK, that's a pity ...
Thanks for your quick reply!

Sign in to comment.

1 Answer

Answer by Jan
on 17 Jul 2019
Edited by Jan
on 17 Jul 2019
 Accepted Answer

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

wow, nice move. Thanks a lot!

Sign in to comment.