messagebox
이전 댓글 표시
hi there, how to close all the messagebox automatically using matlab code.
댓글 수: 1
Jan
2012년 5월 3일
What does "automatically" mean? After a certain period of time? Would closing all figure windows solve your problem, or do you need to keep all non-messagebox figures open?
채택된 답변
추가 답변 (2개)
Ilham Hardy
2012년 5월 3일
close all ??
Asal Barak
2013년 12월 10일
0 개 추천
h=msgbox('Are you sure you want to delete this file?'); pause(2) close(h)
After 2 seconds your box will be closed. You can change the time to whatever you are intending to.
댓글 수: 2
Image Analyst
2013년 12월 10일
Unlike using a timer, this pause method will lock up the program during that time so the user will not be able to interact with anything else. It will not even continue if the user clicks OK immediately - it will still have to wait for the pause to finish.
Asal Barak
2013년 12월 12일
Thank you
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!