Sharing Variables between app and matlab workspace?

23 ビュー (過去 30 日間)
Farid
Farid 2022 年 8 月 15 日
コメント済み: Farid 2022 年 8 月 17 日
Hey community,
I have developed an app with the app designer, I am wondering if there's any way to preview and manipulate the variables generated by the app in matlab's main space.
Thanks in advance
  4 件のコメント
Walter Roberson
Walter Roberson 2022 年 8 月 16 日
My debugging work-around for situations like that is commonly to global a name at the command line, and assign the desired value to the name. Doing so effectively inserts the name into the visible workspace even if it was a "static" workspace (a function that had an "end" matching its "function" line, which is a situation where you cannot just assign to workspace variables in the debugger.)
Farid
Farid 2022 年 8 月 17 日
Thank you Walter.

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

採用された回答

Bruno Luong
Bruno Luong 2022 年 8 月 16 日
Put this statement after you generate your data in the callback
mydata = ...
assignin('base', 'mydata')
  1 件のコメント
Farid
Farid 2022 年 8 月 17 日
Superb! thanks.

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by