comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: FFT phase?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FFT phase? [message #82909 is a reply to message #82902] Fri, 25 January 2013 05:18 Go to previous messageGo to previous message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Friday, 25 January 2013 07:49:00 UTC+1, xqin...@gmail.com wrote:
> Thanks. I have known the reason. What I use is like x= 2*!dpi*2*dindgen(25)/16, so the amplitude and phase are not so accurate.

As a rule of thumb for harmonic analysis, you need at least 10 cycles in your data to get a reliable phase/magnitude estimate. Your example using around 1.5 cycles is probably the worst case scenario.

OR, if you know the frequency of your signal exactly a priori, you have to truncate your data to a periodic signal, i.e. an integer number of cycles, in order to extract A and B reliably. This is what Craig did in his reply, using only a single cycle.

--
Yngvar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how to convert a row of data in a column?
Next Topic: autocorrelation help

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:10:56 PDT 2025

Total time taken to generate the page: 1.19572 seconds