This MATLAB function returns the discrete Fourier transform (DFT) of vector x, ... f = Fs/2*linspace(0,1,NFFT/2+1); % Plot single-sided amplitude spectrum. plot(f ...
www.mathworks.com