Thread Subject: fft amplitude relationship

Subject: fft amplitude relationship

From: Bruce

Date: 23 May, 2008 16:53:02

Message: 1 of 4

Does anyone know how the amplitude of a specific component
(or frequency) in the fourier domain is related to the
amplitude of that component in the time domain, and also the
number of points in the FFT?

It seems that the greater the NFFT, the smaller the
amplitude, but does anyone know the exact relationship?

Subject: fft amplitude relationship

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 23 May, 2008 18:00:50

Message: 2 of 4

In article <g16spe$o9t$1@fred.mathworks.com>,
Bruce <italianasa84@gmail.com> wrote:
>Does anyone know how the amplitude of a specific component
>(or frequency) in the fourier domain is related to the
>amplitude of that component in the time domain, and also the
>number of points in the FFT?

>It seems that the greater the NFFT, the smaller the
>amplitude, but does anyone know the exact relationship?

If you aren't trying to ifft() specifying a different number
of points than are in the fourier domain, then:

time domain amplitude = frequency domain coefficient * 2 / number of points.

Another way of phrasing this is that if you have an impulse
vector in the fourier domain,

N = 123; p = 17; %arbitrary number of points and impulse position.
b = zeros(1,N); b([p,end-p+2]) = N/2; %construct impulse vector
bi = ifft(b); %do the ifft

then the amplitude in the time domain contributed by that
impulse, would be 1.


If, though, you are doing an ifft specifying a different number of points
than are present in the vector, then I have not yet worked out a mental
model of what the results are.
--
  "The art of storytelling is reaching its end because the epic
  side of truth, wisdom, is dying out." -- Walter Benjamin

Subject: fft amplitude relationship

From: Bruce

Date: 28 May, 2008 15:48:02

Message: 3 of 4

Thanks, what you mentioned was what I was looking for.
- Bruce

Subject: fft amplitude relationship

From: Ken Garrard

Date: 28 May, 2008 16:07:01

Message: 4 of 4

"Bruce " <italianasa84@gmail.com> wrote in message
<g1juri$c4v$1@fred.mathworks.com>...
> Thanks, what you mentioned was what I was looking for.
> - Bruce

Bruce,

Walter's answer is incomplete. The DC and Nyquist values
are unique and therefore do not have a 2 in the scale
factor.

time(DC) = frequency(DC) / N
time(Nyquist) = frequency(Nyquist) / N
time(all other points) = frequency(all other points) * 2 / N

Note that there is no Nyquist value for odd N.

Ken

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
fft Bruce 23 May, 2008 12:55:04
amplitude Bruce 23 May, 2008 12:55:04
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com