App Designer - How do I pass a structure or array from one app to another?

10 ビュー (過去 30 日間)
RGB85
RGB85 2022 年 2 月 14 日
編集済み: Kevin Holly 2022 年 2 月 15 日
I'm developing an app to process laboratory test data that will use several auxilary apps for different stages of the processing. I initially load the data file into the main app, apply some corrections/calibrations, and store it in a public structure within the main app. I want to pass that structure to a secondary app for more analysis.
I've seen many examples of passing a single value from one app to another, e.g., values from an edit field. I've used that coding approach in other places in my app and it works fine. I'm not able to find any examples of passing arrays or structures between apps. When I try to use the same approach to pass a structure, I'm getting error messages like:
Unrecognized method, property, or field 'structure' for class 'main'.
Does passing a structure work the same way or am I missing something?

採用された回答

Kevin Holly
Kevin Holly 2022 年 2 月 14 日
The link below demostrates how to communicate between apps when using app designer.
  9 件のコメント
Kevin Holly
Kevin Holly 2022 年 2 月 15 日
編集済み: Kevin Holly 2022 年 2 月 15 日
I meant to remove the app.data. sorry about that.
function CaculateCcMenuSelected(app, event)
app.CalcCc=CalcCc(app);
end
RGB85
RGB85 2022 年 2 月 15 日
That worked! Thanks Kevin - I appreciate your help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by