How can I implement a reset button in a GUI code?

8 ビュー (過去 30 日間)
Anthony
Anthony 2015 年 7 月 7 日
コメント済み: Sid 2015 年 7 月 7 日
Ok, so I wrote a GUI that runs my program when I click a push button called Run Program. My question is how can I implement a Reset push button to bring the user back to before the Run program button was pushed but still keep all other variables in the GUI window from resetting to no value? If anyone could help that would be great!!

採用された回答

Sid
Sid 2015 年 7 月 7 日
Anthony, can you have a look at Doug Hull's tutorial on a similar question? You can find it here .
  1 件のコメント
Sid
Sid 2015 年 7 月 7 日
In a nutshell, set up the callback function for the pushbutton to be saveState instead of it being for the figure CloseRequestFcn .

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by