MATLAB: How to stop sound function from Audio toolbox

Audio Toolboxsound audio toolbox mp3

How can i turn off the audio sample loaded by audioread() and played by sound() function? Ctrl + C doesn't work. So far the only method I found is to close MatLAB.

Best Answer

Calling "clear sound" will stop the playback.
>> [audio,fs] = audioread('Counting-16-44p1-mono-15secs.wav');
>> sound(audio,fs)
>> clear sound
Related Question