Pass variables/structure to .mlapp (GUI/App designer)
16 次查看(过去 30 天)
显示 更早的评论
Hello,
I want to run my matlab script (.m file) amd want to pass data to GUI/.mlapp from my .m file(matlab script) workspace. The data can be a variable/structure.
Also, I want GUI to also pass some data back to .m file.
Thanks !!!
0 个评论
采纳的回答
Cameron
2023-1-8
2 个评论
Cameron
2023-1-9
As @Image Analyst said below, you can use the save and load functions. Those are generally more accepted.
更多回答(3 个)
Image Analyst
2023-1-9
0 个评论
Walter Roberson
2023-1-9
App designer creates code that defines an object class the derives from handle.
At least in theory, you could modify the constructor to accept additional parameters. Or probably better would be adding methods that accepted the handle object and the additional data, and performed an action and returned appropriate values.
0 个评论
chrisw23
2023-2-9
Calling your mlapp application from your script returns the app handle with full access to all public objects
myAppHandle = myApp()
Observed properties are an option to establish an event structure for bidirectional communication.
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!