MATLAB: How to compute fourier coefficient

coefficientfourier

Hi I have a pulse and I want to compute the first 20 fourier coefficient of it. Would anyone help me to do this?

Best Answer

f = fft(yourSignal);
f20 = f(1:20); % Extract first 20 coefficients.
Related Question