MATLAB: How to read a period of wav file in matlab

digital signal processing

I need to read a wav file with cycle, period by period. I need help in this task.

Best Answer

If you use wavread, you can use an argument to read a range of samples. You would have to increment that in a loop.
The same is true of audioread.m
[y,fs] = wavread(filename,[start end]);
If have the DSP System Toolbox, then the task is easier with System objects. See dsp.AudioFileReader and set the SamplesPerFrame property.
Related Question