Replacement of beep-function. Gong sounds a lot nicer then 'beep' (that's my humble opinion). You may adjust the frequency, volume and duration of the gong-sound to distinguish the place in your script were the gong is sound.
The call is very simple:
gong
gong(vol)
gong(vol,freq) or
gong(vol,freq,duration)
default the gong sounds at 440 Hz (the standard musical a-note)
Enjoy!
Cite As
John Gooden (2026). Gong (https://www.mathworks.com/matlabcentral/fileexchange/21231-gong), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R13
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Audio I/O and Waveform Generation in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
