Main Content

beep

Produce operating system beep sound

Description

example

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).

Examples

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.

pause(5)
beep

Tips

  • 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.

Version History

Introduced before R2006a

See Also