what is the uiwait?
이전 댓글 표시
what is the uiwait?
then, how to use it?
If you know, please tell me ,thank you!!
댓글 수: 1
Jan
2012년 8월 18일
Did you read "help uiwait" and "doc uiwait" already?
채택된 답변
추가 답변 (2개)
Image Analyst
2012년 8월 18일
uiwait() will pause execution of your program until you do something, such as close or interact with some dialog box. For example if you do
msgbox('This will not stop. It will keep running code.');
Then it will pop up a message box and continue on with the subsequent code. It won't wait for the user to click the OK button. But if you wrap it in a uiwait(), it will wait for the user to click OK:
uiwait(warndlg('You have an anomalous situation here. Click OK to continue'));
uiwait(msgbox('I will wait for you to click OK.'));
Azzi Abdelmalek
2012년 8월 18일
편집: Azzi Abdelmalek
2012년 8월 18일
%uiwait blocks the execution of the program until a current figure is closed
%example
t=0:0.1:2*pi;y=sin(t);
plot(t,y)
uiwait(gcf)%
%at this point the program will wait you close the curent figure and the continue
y=cos(t);
plot(t,y)
댓글 수: 2
Azzi Abdelmalek
2012년 8월 18일
look at the example given by Matt Fig
카테고리
도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!