How to stop simulation in a GUI?
Ältere Kommentare anzeigen
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
Antworten (1)
Sean de Wolski
am 19 Jul. 2012
0 Stimmen
If you want the gui to close, just call its CloseRequestFcn.
2 Kommentare
hana
am 19 Jul. 2012
Sean de Wolski
am 19 Jul. 2012
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...
Kategorien
Mehr zu Scope Variables and Generate Names finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!