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 #82911 is a reply to message #82909] Thu, 24 January 2013 22:49 Go to previous messageGo to previous message
xqinshan is currently offline  xqinshan
Messages: 21
Registered: November 2008
Junior Member
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.

在 2013年1月25日星期五UTC+8上午10时11分30秒,Craig Markwardt写道:
> On Thursday, January 24, 2013 12:28:02 PM UTC-5, xqin...@gmail.com wrote:
>
>> Hi,
>
>>
>
>>
>
>>
>
>> just use FFT(y). For example, y=A*cos(x+B), C=fft(y). I think atan(C,/phase) should equal to B, but the return reslut is not. How to obtain A and B from complex C?
>
>
>
> It is correct. Example:
>
> x = 2*!dpi*2*dindgen(16)/16 ;; Angle in radians
>
> y = 0.7*cos(x + 1.6000)
>
> c = fft(y,-1)
>
> print, atan(c[2],/phase)
>
> ==> 1.6000
>
>
>
> Craig
[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: Wed Oct 08 17:30:15 PDT 2025

Total time taken to generate the page: 0.00195 seconds