FUNCTION REFERENCE

pause

Wait cooperatively or control timed pauses.

Wait cooperatively or control timed pauses.

Syntax

pause

Syntax

pause(seconds)

Syntax

pause('on')

Syntax

pause('off')

Syntax

state = pause('query')

Syntax

pause(player)

Pausing an audio player preserves its position for resume.

Without an argument, waits until Enter is pressed in the CLI or any answer is given in the desktop Command Window. Zero and negative durations return immediately. Timed pauses check cancellation at least every 10 ms between sleeps. After pause('off') every pause returns at once. The on/off state belongs to the engine.

Example

pause(0); pause('query')   % on

Differences from MATLAB: Bare pause waits for a line (Enter), not a single key; in the browser console only pause(seconds) waits cooperatively.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.