How to stop simulation in a GUI?

3 次查看(过去 30 天)
hana
hana 2012-7-19
How can I stop a guide gui in the middle of a simulation/ in different modes... . I'd like to have a menu option, which when selected, all simulations/ changes would stop and the gui would back to it's original status (when it was just executed) or it would close down. P.S. eventually I want to make an executable file out my gui (if that makes a difference)
thanks

回答(1 个)

Sean de Wolski
Sean de Wolski 2012-7-19
If you want the gui to close, just call its CloseRequestFcn.
  2 个评论
hana
hana 2012-7-19
I have a iterative simulation that stops at every couple of steps to a dialog, I just want to give users the option to terminate the simulation & go back to the original gui figure in clean & original condition.
Sean de Wolski
Sean de Wolski 2012-7-19
So keep a structure of what the gui contains when it is in its original condition, then if they hit a button, run a for-loop over the structure and reset everything to its original...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by