Change variable name across code lines
Mostra commenti meno recenti
I have a long that consists of over 600 lines, I have a variable “a” that I use a lot in my code and I would like to change its name to variable app.a to use in app designer however using the replace all feature changes all occurances of “a” even the ones in my comments or in other words in my code
Risposta accettata
Più risposte (1)
John D'Errico
il 28 Nov 2023
0 voti
Use find and replace.
It will search for the next occurence of a. Then you click on either replace, or to ignore that occurence of a, and go on to the next occurrence.
You won't find something simpler, and you will find that by the time you are done, it did not take too long.
Categorie
Scopri di più su Whos in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!