MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: fourier ( FFT )


I assume the followings:
1) you already have a list of pairs such as 
myData={{x1,f[x1]},{x2,f[x2]},...}
2) x2-x1=x3-x2=..., that is, equal spaced samples.
 
under this all you need to do is to take the last value of each pair and 
use Fourier
Fourier[Last /@ myData]
will do the trick.
 
yehuda
 


bar at ANTYSPAM.ap.krakow.pl wrote:

>Hi
>
>My file has form:
>x1  f(x1)
>x2  f(x2) ....
>
>How can I use Mathematica to obtain frequencies ?
>
>Fourier[] works on only one list!
>
>When i tested with f(x)=Sin[a x] sometimes 
>i obtained wrong result.
>
>
>regards, Olaf
>
>  
>


  • Prev by Date: Re: First question
  • Next by Date: Re: Two y-axes in one graph
  • Previous by thread: Re: fourier ( FFT )
  • Next by thread: Re: fourier ( FFT )