Error-Variable might be used before it is defined
Show older comments
I have defined some classes and two of them Called "Global" &"GlobalFlag".
All the classes are in one folder and same path.
But I got this warning that the "Variable might be used befire it is defined" and also after running I get the error " Global is not found in the current folder or on the MATLAB path, but exists in:"
Everything looks correct.
Any idea?
In this screenshot Die is also an object of a class.

Accepted Answer
More Answers (0)
Categories
Find more on Data Type Identification 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!