How does one track a change in global variable values and error out?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!