This function is a fun alternative to the beep function (and to my mind, it is also more useful, as it cannot be confused with the sound Matlab makes when encountering an error). Instead of playing the standard operating system beep sound, it randomly selects and plays one of the built-in Matlab sounds (gong, handel, laughter, train, or chirp). I recommend turning your volume all the way up so that you can be surprised/terrified by the sound of, for example, Handel's Messiah blowing out your speakers to let you know when your script has finished running.
Cite As
Norman Pelak (2024). beep2 (https://www.mathworks.com/matlabcentral/fileexchange/93880-beep2), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.