Windows System Sounds

Play any Windows system sound from within MATLAB.
591 Downloads
Updated 6 Apr 2011

View License

Plays a Microsoft Windows system sound specified by an input string. Input string may be an exact filename of a .wav file in the C:\Windows\Media directory or a string with the "Windows" prefix removed from the filename.

Examples:
systemsound('critical stop')
systemsound('exclamation')

Tested with Windows 7, results may vary for older versions.

Cite As

Drew Weymouth (2026). Windows System Sounds (https://uk.mathworks.com/matlabcentral/fileexchange/30979-windows-system-sounds), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0