MATLAB exiting loop in function when using GUI
이전 댓글 표시
I have a function (Not the callback function) which runs when a button is clicked and that function will call another function to perform plotting, which is an animation composed by a series of loops. Problem is, after the program is run, it cannot be stopped unless wait till the animation is done or pressing Ctrl+C which then cause the whole .exe to fail and require reopening it.
I want to make a Reset button, so to stop the loop from continuing, but how to pass a new variable from the interrupt to the existing function which is two level above the original stack?
Thank You
답변 (1개)
Paulo Silva
2011년 3월 27일
0 개 추천
댓글 수: 3
Thomas
2011년 3월 27일
Paulo Silva
2011년 3월 27일
Share the data in another way, use setappdata and getappdata or save the data in the properties of the GUI figure, see the UserData property.
Thomas
2011년 3월 27일
카테고리
도움말 센터 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!