Using FFT in MATLAB
1. Calling Methods X=FFT(x); X=FFT(x, N); x=IFFT(X); x=IFFT(X, N) When performing spectral analysis with MATLAB, note: (1) The data structure of the return value from the FFT function is symmetric. Example: N=8; n=0:N-1; xn=[4 3 2 6 7 8 9 0]; Xk=fft(xn) →Xk =39.0000 -10.7782 + 6.2929i 0 – 5.0000i 4.7782 – 7.7071i 5.0000 4.7782 … Read more