How can I compute fourier coefficient?

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

 Réponse acceptée

Image Analyst
Image Analyst le 10 Mar 2017
f = fft(yourSignal);
f20 = f(1:20); % Extract first 20 coefficients.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by