FUNCTION REFERENCE

beep

Produce a system beep or query/set beep state.

Produce a system beep or query/set beep state.

Syntax

beep

Syntax

beep on

Syntax

beep off

Syntax

s = beep

Rings a short system bell in the desktop app when enabled (no-op in CLI / -batch). beep('on') or beep('off') enables or disables the bell; s = beep returns 'on' or 'off'.

Example

beep('off'); s=beep; beep('on'); s   % off

Differences from MATLAB: No-op in CLI and -batch; desktop app uses the host bell if available.

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