%% 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')

% Copyright 2012 The MathWorks, Inc.