clear sound will stop a sound that is playing on matlab.
The sound command on Matlab (
sound(some_variable,sampling_rate)) plays a sound based on the values in a variable and a sampling rate. But it almost seems like there is no way to stop it. You can, though, if you clear all the variables by typing in
clear all. But that can be problematic as it will wipe out all the variables you are working with. The best thing to do instead, is to type in