

In the above example, "fs" is the sample rate which is 16000 in this case. Sound(y, fs) % Playback of the sound data (播放此音訊) The following example reads the wave file "sunday.wav" and display its waveform directly.Įxample 1: matlab4asp/readWave01.m =wavread('sunday.wav') MATLAB can read such wave files via the command "wavread". On the Windows platform, the most common file extension for audio files is "wav". 4-2 Reading Wave Files 4-2 Reading Wave Files
