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

10 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by