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 #82915 is a reply to message #82911] Thu, 24 January 2013 18:11 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
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: Fri Oct 10 11:35:40 PDT 2025

Total time taken to generate the page: 8.47940 seconds