MathGroup Archive 2007

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

Search the Archive

graphing frequency & amplitude?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79153] graphing frequency & amplitude?
  • From: efifer at fas.harvard.edu
  • Date: Fri, 20 Jul 2007 03:16:20 -0400 (EDT)

Hi,

I am trying to create a graph that graphs frequency versus amplitude of a sound
made by the sum of two sine waves. I tried fourier transforming them and
graphing it, yet it looks to me like the graph is plotting time rather than
frequency. How do I change this?

Plot[10*Sin[200t] + 10*Sin[100t], {t, 0, 1}]

data = Table[10*Sin[200t] + 10*Sin[100t], {t, 0, 100}]

ListPlot[Abs[Fourier[data]], PlotJoined -> True, PlotRange -> All]

Thank you for the help!
Emily



  • Prev by Date: Re: fast way of appending x zeros to a list?
  • Next by Date: Mathematica, MathLink, and interfacing to external libraries
  • Previous by thread: Re: Mathematica to .NET compiler
  • Next by thread: Re: graphing frequency & amplitude?