Documentation Center

  • Trial Software
  • Product Updates

beep

Produce operating system beep sound

Syntax

  • status = beep

Description

example

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

beep on turns the beep on.

beep off turns the beep off.

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

Examples

expand all

Produce Beep Sound

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

More About

expand all

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.

See Also

Was this topic helpful?