How does one track a change in global variable values and error out?
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!