How to stop simulation in a GUI?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Sean de Wolski
2012년 7월 19일
If you want the gui to close, just call its CloseRequestFcn.
댓글 수: 2
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 Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!