Resume execution of blocked program
uiresume(h)
uiresume(h)
resumes the
program execution that uiwait
suspended.
This example code creates a window containing a push button.
The uiwait
function blocks MATLAB® execution
until the user clicks the push button.
f = figure; h = uicontrol('Position',[20 20 200 40],'String','Continue',... 'Callback','uiresume(gcbf)'); disp('This will print immediately'); uiwait(gcf); disp('This will print after you click Continue'); close(f);
The gcbf
function returns the current figure.