This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Produce operating system beep sound


beep on
beep off
status = beep



beep produces your computer's default beep sound, if it is enabled.

beep on enables the beep sound.

beep off disables the beep sound.

status = beep returns the current beep mode (on or off).


collapse all

Produce your system’s default beep sound after a period of silence.

Pause for 5 seconds of silence, and then produce your system’s default beep sound.



  • If you have configured your system not to produce any sound, then beep is silent.

  • beep produces the operating system’s default beep sound. To produce a sound and specify its pitch and duration in MATLAB®, use the sound function.

See Also

Introduced before R2006a