MathGroup Archive 2011

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

Search the Archive

Re: discrete Fourier transform

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121063] Re: discrete Fourier transform
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Fri, 26 Aug 2011 05:21:55 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

On 8/25/11 at 7:05 AM, tarunduttaz at gmail.com (tarun dutta) wrote:

>I have a text file (in my desktop)in which there are two columns one
>is time and another is the result as 0   0.956 2   0.265
>...................etc now I have to plot the data after doing
>discrete fourier transform of this data.how will I do that ? I used

>data=Import["output.txt", "Table"]
>pt=Fourier[data]
>ListLinePlot[pt]
>but itz not working.can any one help me by giving a solution.
>regards,
>tarun

In general, the output of Fourier will be a list of complex values rather than real values. So, try

ListLinePlot[Abs@pt]

to plot the magnitude or

ListLinePlot[Arg@pt]

to plot the phase





  • Prev by Date: Re: Replace
  • Next by Date: Re: Better use of PolynomialReduce?
  • Previous by thread: Re: discrete Fourier transform
  • Next by thread: Replace