What does the red lock icon mark mean?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yasuyuki Hamanaka
am 8 Mär. 2022
Kommentiert: Walter Roberson
am 9 Mär. 2022
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?
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 8 Mär. 2022
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 Kommentare
Walter Roberson
am 9 Mär. 2022
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!