MATLAB: How to control the computer’s audio volume from the MATLAB command prompt

adjustaudiocommandcontrollineMATLABpromptvolume

I want to adjust the audio volume of my computer using MATLAB.

Best Answer

The ability to directly control your computer's audio volume is not available in MATLAB.
To work around this issue you can use the SYSTEM function in MATLAB to issue commands to another program that can control audio volume. Users on Windows systems can also use the DOS function.
For more information on the SYSTEM or DOS functions, type:
doc system
doc dos
at the MATLAB command prompt.