pause
Stop MATLAB execution temporarily
Description
pause
temporarily stops MATLAB® execution and waits for the user to press any key. The
pause
function also temporarily stops the execution of
Simulink® models, but does not pause their repainting.
Note
If you previously disabled the pause setting, reenable it using
pause('on')
for this call to take effect.
Examples
Input Arguments
Tips
The accuracy of the
pause
function is subject to the scheduling resolution of your operating system, and to other concurrent system activity. The accuracy is not guaranteed, and finer resolution results in higher relative error.While MATLAB is paused, the following continue to execute:
Repainting of figure windows, Simulink block diagrams, and Java® windows
Callbacks from figure windows
Event handling from Java windows
Extended Capabilities
Version History
Introduced before R2006a