run function ButtonPushed (app, event) when you open the GUI

13 ビュー (過去 30 日間)
Ermanno Manca
Ermanno Manca 2020 年 7 月 10 日
コメント済み: Ermanno Manca 2020 年 7 月 15 日
Hey,
I'd like my GUI to run the function that's behind "ButtonPushed" immediately after opening it.
Is there any way to do it? I want to set starting points and plot them, these then get changed.
In the attached picture you see what i get when i push the Start Button. I managed to set initial Values for every field, but when i open the GUI the plot only starts by pushing "Start". I want it to use the Values in the edit fields and plot by it's own, without clicking on "Start".
Thanks a lot and best regards,
Ermanno

採用された回答

Anirudh Singh
Anirudh Singh 2020 年 7 月 13 日
You can put code in StartupFcn Callback, which executes when the app starts up. So that, when you open the app function under StartupFcn, will be running automatically.
For more info, you can refer documentation :StartupFcn
  1 件のコメント
Ermanno Manca
Ermanno Manca 2020 年 7 月 15 日
Thanks a lot, exactly what i was looking for!

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

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