Jumat, 10 Agustus 2018

MSGBOX UIWAIT

uiwait(questdlg('Are you sure, you want to stop Realtime?','CloseRequestFunction','Yes','No','Yes'),.2);


f = figure('pos',[30 800 250 150]);
h = uicontrol('Position', [20 20 200 40], 'String', 'Continue', ...
              'Callback', 'uiresume(gcbf);close(gcbf)');
disp('This will print immediately');
uiwait(gcf);
disp('This will print after you click Continue');



uiwait(warndlg('You have an anomalous situation here.  Click OK to continue'));
uiwait(msgbox('I will wait for you to click OK.'));


 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)


Tidak ada komentar:

Posting Komentar