How does one track a change in global variable values and error out?
Mostra commenti meno recenti
To explain the problem:
Assume a global variable 'X' which can take only a finite/known value;
say 10,20,30 or 40;
If another value is assigned to X anywhere in the workspace, the code needs to error out. Is there a way to do this globally from a main/top file, rather than inserting checks at each assignment.
Just a thought.
Thaks
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Image Arithmetic 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!