Setting Access Properties to Public without AppDesigner
조회 수: 2 (최근 30일)
이전 댓글 표시
So I'm working on a project that requires programmatic GUI development, and I'm trying to set a variable to public so it can be used and shared between multiple callback functions.
I'm essentially trying to make the:
properties (Access = public)
x = 1234
end
happen but obviously it does not work. Is there a way to set a variable to be shared between callback functions programmatically?
FYI; I'm using a uifigure based GUI so I can't use anything that only works on a figure based GUI.
댓글 수: 0
채택된 답변
Rik
2021년 4월 23일
As you can see here, class properties are public by default, so you don't need to add any text. The rest of that thread might be interesting for you as well.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!