FFT vs. Fourier transform

62 views (last 30 days)
Eric
Eric on 19 Feb 2012
Edited: Cedric on 16 Oct 2013
Hey guys,
The top graph is the function is wish to get the spectrum of
The middle one is what I find via a Fourier transform integral i.e. integral f(t)exp(iwt)dt
And the last one is my results via the FFT routine...why is this so??

Answers (1)

Daniel Shub
Daniel Shub on 19 Feb 2012
When dealing with Fourier analysis, you need to be careful with terminology. The fast Fourier transform (FFT) is an efficient implementation of the discrete Fourier Transform (DFT). There is also the discrete-time Fourier transform (DTFT) which under some stimulus conditions is identical to the DFT. There are also continuous time Fourier transforms.
You seem to be comparing a continuous-time Fourier transform (your integral) with a discrete-time Fourier transform. It is not surprising to me that you are getting different results.
Steve Eddins addressed these issues nicely in his blog a few years ago: (see blog posts starting on Novermber 23 2009):

Products

Community Treasure Hunt

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

Start Hunting!