How to exit a GUI program?
이전 댓글 표시
If I exit a GUI code when it is running,it will still be running in the background or maybe some errors will occur. I want to know whether there is a function that can completely exit the program and kill all errors.
채택된 답변
추가 답변 (1개)
Sean de Wolski
2013년 2월 27일
Well to insure that there aren't errors, put in conditionals before doing something that would error.
For example: if you have a function that wants to set a textbox's string to 'Done' at the end:
h = handle to textbox
if ishandle(h) %Does thes the textbox still exist?
%Yup
set(h,'String','Done');
else
%Figure was closed!
return
end
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!