What does the red lock icon mark mean?
3 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I tried to access to my own data through MATLAB, but the variables cannot correctly be read. The variables window shows a red lock mark as shown below. Would you tell me what it means?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/918864/image.png)
0 件のコメント
採用された回答
Steven Lord
2022 年 3 月 8 日
If you're using the Workspace browser as part of debugging a class method, according to the "View Variable Contents" section on this documentation page "A [lock, opened] or [lock, locked] icon next to a variable property in the Variables editor indicates that the property is protected or private."
5 件のコメント
Walter Roberson
2022 年 3 月 9 日
You are examining an object-oriented Object. Objects are values combined with behaviour; the behaviour is typically defined by .m files, typically a .m file that includes a classdef statement.
The code Steven is referring to is the defining code for the class and its method; the object you are examining can only be understand properly in relationship to that code, and that code defines the behaviour about who is (normally) permitted to examine and modify the values.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Class File Organization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!