Setting Access Properties to Public without AppDesigner
3 次查看(过去 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!