Hello all,
I have been trying to figure out what each step is in the FFT process as shown below. It is to perform an FFT on a WAV file.
Essentially I want to know why this is how to do it, rather than just taking it for what it is. Step by step.
[x,fs] = audioread(filename); %% FFT
lpad = length(x);xdft = fft(x,lpad);xdft = xdft(1:lpad/2+1);xdft = xdft/length(x);xdft(2:end-1) = 2*xdft(2:end-1);freq = 0:fs/lpad:fs/2;amplitude= abs(xdft);
Best Answer