How can you store values in App Designer like you can in GUIDE?

33 ビュー (過去 30 日間)
Ruger28
Ruger28 2020 年 5 月 6 日
コメント済み: Ruger28 2020 年 5 月 6 日
Hello,
Im trying to store some variables in App Designer like I can in GUIDE using handles. In GUIDE for example, I could do:
x = 123
handles.x = x;
and use handles.x anywhere I send handles. I tried to do the same in App Designer the snippet below, but it errors:
x = 123;
app.x = x;
Any advice is greatly appreciated.
Thanks!

採用された回答

Geoff Hayes
Geoff Hayes 2020 年 5 月 6 日
Ruger28 - you probably want to use properties. See Share Data Within App Designer Apps for details.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by