I am using the SOUND function in a FOR loop. At some point in the loop after MATLAB plays some of the sounds, MATLAB stops playing sounds. After my program has finished I can not play sounds anymore. However, I still can play WAV files using Windows Media Player despite MATLAB not being able to play sounds.
Sometimes I will receive a Windows system error dialog box explaining that a certain address in memory could not be read. Clicking "OK" terminates MATLAB.
Restarting MATLAB does not always solve the problem. The only way to be able to play sounds with MATLAB is to reboot the computer, but when I run my code again the problem reappears.
Best Answer