How to change an app parameter from .m file function
显示 更早的评论
Hi guys.
I have designed an app in app designer and it calls a .m file that contains a function.
In that function I do some works and at the end I want to change in some parameters. For example I want to disable a button in app. Could any one help me about it?
4 个评论
Geoff Hayes
2022-4-11
@SRii - you could have the function return a parameter that indicates that the button should be disabled (doesn't have to explicitly say "disable button" but perhaps a status that your GUI would interpret as a reason to disable the button).
SRii
2022-4-12
Walter Roberson
2022-4-12
编辑:Walter Roberson
2022-4-12
https://www.mathworks.com/help/matlab/math/parameterizing-functions.html
pass the app to the function. Use the app to extract the handle of the button. Set the button property to disable.
SRii
2022-4-13
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 App Building 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!