How to access properties of objects instantiated between different classes in multi-window matlab app designer
1 回表示 (過去 30 日間)
古いコメントを表示
Arlan Pacheco Figueiredo
2022 年 8 月 6 日
コメント済み: Walter Roberson
2022 年 8 月 9 日
I'm creating an application where the main app, after performing some functions and storing some data, calls app.2 or app.aux. However, to perform a certain function in app.2 I need a result (artificial neural) created in the main app.´
The neural network is a public property in the main app
app.2 does not display the neural network created in the main app as properties when it starts. Can someone help me?
0 件のコメント
採用された回答
Walter Roberson
2022 年 8 月 6 日
app2 and app aux each have constructor methods. Change the constructors to accept an option parameter which is the handle of the calling app. Then when you invoke them, pass in app from the first routine.
If it does not permit you to change the constructor, then have the constructor just create the new app and return its handle. Then add a method that accepts the handle to the calling app and stores it away and does whatever real work is desired.
4 件のコメント
Walter Roberson
2022 年 8 月 9 日
app.D1 = [app.Is.Value; app.Us.Value; app.Vs.Value; app.Es.Value];
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Software Development Tools についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!