how to interpret FFT output

37 visualizaciones (últimos 30 días)
Michael Johnson
Michael Johnson el 5 de Abr. de 2015
Comentada: dpb el 9 de Abr. de 2022
t=0:.01:2*pi;
f=cos(t);
F=fft(f)
plot(real(F))
So, I am confused about what FFT is actually outputting. I see two frequency spikes with an amplitude of pi*100. The spikes occur at 0 and 2*pi*100. Already, I see there must be some sort of relationship between the step size of my time vector and the location of the spikes. Similarly the amplitude seems to be half of the period, so there must be some sort of relationship with that as well. Can someone explain to me these relationships and how to interpret this plot?
What I EXPECTED to see was a single spike on the x axis at 1, cooresponding with cos(1*t). (What is the x-axis on this plot anyway?) Also if we relate fft to the discrete Fourier Series, does the amplitude of the spike have any relationship with the value of A_n or B_n in the summation series?
My goal is to eventually be able to take advantage of fft to solve for a steady state response given a periodic input into a linear system, but first i need to understand exactly what i am dealing with!
Thanks.

Respuestas (2)

dpb
dpb el 5 de Abr. de 2015
See
doc fft
example for demonstration of PSD and frequency and discussion of Matlab fft output. Basically, the magnitude is independent of the x-axis, you have to associate the sample frequency manually.
My classic reference (showing my age) is Brigham, OA, The Fast Fourier Transform and Its Applications, Prentice-Hall.

Ashawaraya Shalini
Ashawaraya Shalini el 22 de Ag. de 2018
Editada: dpb el 9 de Abr. de 2022
Hi, Following link will help you understand the FFT output step by step... You need to calculate the power spectral density and plot it against frequency to interpret FFT results.
  2 comentarios
Sateesh Kalidas
Sateesh Kalidas el 26 de Mzo. de 2022
The link is broken. Any hints please.
dpb
dpb el 9 de Abr. de 2022
Updated link above plus the general section on Fourier Transforms.
Locally, just type
doc fft
at command line and follow links

Iniciar sesión para comentar.

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by