Error-Variable might be used before it is defined
显示 更早的评论
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.

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Type Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!