What does the red lock icon mark mean?
조회 수: 6 (최근 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?
댓글 수: 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에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!