The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: question on fft example
Replies: 5   Last Post: Nov 17, 2012 11:02 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Greg Heath

Posts: 6,387
Registered: 12/7/04
Re: question on fft example
Posted: Nov 17, 2012 5:49 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Nasser M. Abbasi" <> wrote in message <k829kk$hv6$>...
> On 11/15/2012 2:33 AM, oversky wrote:
> > The mathwork fft example in the following link,
> >
> > why do we double abs(Y(1:NFFT/2+1) when plotting the amplitude?
> >
> > plot(f,2*abs(Y(1:NFFT/2+1)))
> >

> This was talked about before. can google it. Here is my take on it:
> "Why does it multiply by 2?"

To represent the same average power as the doublesided frequency representation.

the DC and Nyquist components should NOT be doubled.

plot((0:Fs/2), [abs(Y(1)), 2*abs(Y(2:NFFT/2)), abs(Y(NFFT/2+1)) ] )

Hope this helps.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.