Here is the context of the problem: I have a DTMF signal in wav format, I have to identify the number sequence it has encoded. I must do so using fast fourier transform in M
This worked for me:
windowSize = 256; nbWindows = floor(L / windowSize); for i=1:nbWindows coeffs = fft(signal((i-1)*windowSize+1:i*windowSize)); plot(abs(coeffs(1:N))); waitforbuttonpress end;
This way it is possible to shift the window until the end of the input signal