www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/DisablePauseSettingExample.m

    %% Disable Pause Setting
% Disable the pause setting and query the current state.
pause('off')
pause('query')

%%
% Pause execution for 100 seconds. Since the pause setting is off, MATLAB
% ignores the request to pause execution, and immediately returns the
% command prompt.
pause(100)

%%
% Enable the pause setting.
pause('on')