Is properties like global variables?
3 次查看(过去 30 天)
显示 更早的评论
Hi! :)
Is properties in matlab app designer like global variables in matlab program? I am a little confused..
0 个评论
回答(2 个)
Matt J
2023-2-21
编辑:Matt J
2023-2-21
No, they are not like global variables. They are attached to the app object used by the callbacks and must be accessed similarly to structs:
app.property1=...
app.property2=...
1 个评论
Walter Roberson
2023-2-21
Also the object class can be designed to restrict read or write access (though I am not sure how much support App Designer provides for this)
chrisw23
2023-2-22
see the first line of a mlapp file
classdef app1 < matlab.apps.AppBase
Each AppDesigner app is nothing more than a class definition following the same rules.
see Matlab OOP
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!