How to pass variable from .m file to appdesigner?

45 ビュー (過去 30 日間)
Dc215905
Dc215905 2020 年 8 月 11 日
コメント済み: Dc215905 2020 年 8 月 11 日
Hello,
I have a .m file that I am executing on a button press in appdesigner. The final output of that is a structure variable called "data."
How to I pass "data" into appdesigner so that I can then pass that information within the app?
On another note - I'm having a lot of trouble finding basic tutorials on appdesigner. I used GUIDE in the past, but it doesn't seem to translate very well. Any suggestions?
Thanks

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 8 月 11 日
I would suggest turning your m-file into a function that returns data as a function output. Then you can call your function from within app designer, and it will return the value to a variable you specify.
I assume you already know about this tutorial? Once you understand the basics, you might consider looking at some of the examples.
  1 件のコメント
Dc215905
Dc215905 2020 年 8 月 11 日
Thank you!

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

その他の回答 (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