This bug has been fixed in MATLAB 7.3 (R2006b). For previous product releases, read below for any possible workarounds:
This issue exists in the sound quality generated by MATLAB 6.5 (R13) for Linux.
To workaround this issue, try the following:
1. Use the AUDIOPLAYER and AUDIORECORDER functions in MATLAB 7.0 (R14) and later versions to avoid this issue as follows:
load handel;
player = audioplayer(y, Fs);
play(player,[1 (get(player, 'SampleRate')*3)]);
stop(player);
For more information on the functions AUDIOPLAYER and AUDIORECORDER refer the links below:
2. For releases previous to MATLAB 7.0 (R14), if the system is running MATLAB with Java Virtual Machine 1.3 or higher, try this as a possible workaround:
load handel;
p = com.mathworks.toolbox.audio.JavaAudioPlayer(y, Fs, 16);
p.play;
Note that "y" must be scaled between the ranges of [-1 1] for the files to play clearly.
Best Answer