Pass variables/structure to .mlapp (GUI/App designer)
13 ビュー (過去 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!