accessing variables in multiple .mlapp files - Matlab app designer
6 ビュー (過去 30 日間)
古いコメントを表示
hello,
i am wondering how to share variables between 2 matlab app designer (.mlapp) files. I have one file GUI2.mlapp and another file GUI4.mlapp. I would like to share a variable from GUI.mlapp to GUI4.mlapp. How am i able to do this?
matlab version: R2019B
Thank you!
0 件のコメント
採用された回答
Adam Danz
2021 年 6 月 11 日
You're in luck! Matlab's documentation contains a page that specifically explains the process of sharing variables between apps.
Although that page comprehensively explains the process, here's an answer that shows a step-by-step process of declaring app properties. You can use "public" properties.
7 件のコメント
Adam Danz
2021 年 6 月 15 日
The line below with the leftward arrow is accessing the name propery of GUI2!
If this function is within GUI4, then use app.name since the app content pertains to GUI4.
%my second app called GUI4.mlapp
function startupFcn(app)
app2handle = GUI2
app2handle.name % <------------------------
end
その他の回答 (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!