Message Boards Message Boards

Plotting discrete Fourier real and imaginary parts

Posted 10 years ago
I have some data that I took the DFT of:
 v = {0.000549316, 0.000518799, 0.000518799, 0.000549316, 0.000549316,
   0.000579834, 0.000610352, 0.000640869, 0.000701904, 0.000793457,
   0.000793457, 0.000793457, 0.000732422, 0.000732422, 0.000762939,
   0.000701904, 0.000671387, 0.000640869, 0.000610352, 0.000610352,
   0.000640869, 0.000671387, 0.000732422, 0.000762939, 0.000732422,
   0.000671387, 0.000640869, 0.000579834, 0.000518799, 0.000488281,
   0.000457764, 0.000457764, 0.000427246, 0.000427246, 0.000396729,
   0.000366211, 0.000366211, 0.000396729, 0.000488281, 0.000549316,
   0.000518799, 0.000488281, 0.000518799, 0.000488281, 0.000457764,
  0.000488281, 0.000427246, 0.000366211, 0.000274658, 0.000244141,
  0.000244141, 0.000244141, 0.000244141, 0.000213623, 0.000274658,
  0.000274658, 0.000305176, 0.000305176, 0.000213623, 0.000183105,
  0.000152588, 0.000183105, 0.000152588, 0.000152588, 0.00012207,
  0.00012207, 0.000152588, 0.00012207, 0.00012207,
  0.000015546914727030923, 0.000015546914727030923,
  0.000015546914727030923, 0.000152588, 0.000183105, 0.000183105,
  0.000213623, 0.000213623, 0.000152588, 0.000183105, 0.000335693,
  0.000518799, 0.000610352, 0.000671387, 0.000732422, 0.00088501,
  0.000976563, 0.00106812, 0.00106812, 0.000946045, 0.000640869,
  0.000015546914727030923, -0.000518799, -0.00109863, -0.00183105,
-0.00262451, -0.00201416, 0.000427246, 0.00134277,
  -0.000579834, 0.0017395, 0.00830078, 0.00881958,
  0.00228882, -0.00448608, -0.00704956, -0.00479126, -0.000610352,
  0.00183105, 0.0017395, 0.000854492, 0.000701904, 0.00106812,
  0.00088501, 0.000549316, 0.00119019, 0.00228882, 0.00265503,
  0.00128174, -0.00222778, -0.00524902, -0.00500488, -0.00238037,
  0.000015546914727030923, 0.00125122, 0.00183105, 0.00210571,
  0.00167847, 0.00012207, -0.00140381, -0.00170898, -0.000457764,
  0.00137329, 0.00137329, -0.000274658, -0.00100708, -0.000427246,
  0.00011805873894861419, -0.000015546914727030923, -0.000732422,
-0.00112915, -0.000640869, 0.000244141, 0.000488281,
  0.000152588, -0.000305176, -0.000305176, 0.00011805873894861419,
  0.000427246, 0.000701904, 0.000671387,
  0.000335693, -0.003777879646355654, -0.000396729, -0.000366211,
-0.003777879646355654, 0.000366211, 0.000579834, 0.000457764,
  0.000183105, -0.00012207, -0.000274658, -0.000244141, -0.000183105,
-0.000305176, -0.000518799, -0.000518799, -0.000427246, -0.000427246,
-0.000305176, 0.00011805873894861419, 0.000366211, 0.000549316,
  0.000549316, 0.000244141, -0.00012207, -0.000274658, -0.000152588,
  0.003777879646355654, 0.000183105, 0.000335693,
  0.000305176, -0.00011805873894861419, -0.000701904, -0.0010376,
-0.000793457, -0.000305176, -0.00012207, -0.000274658, -0.000610352,
-0.000793457, -0.000854492, -0.00088501, -0.0010376}
a = Fourier[{v}, FourierParameters -> {1, 1}]
I took the transform and I got real and imaginary parts. How can I do a plot of
a = Fourier[{v}, FourierParameters -> {1, 1}]
so that I have the real (x-axis) and imaginary (y-axis) parts on the same graph?

Thank you in advance.
POSTED BY: sean roubion
ListPlot[Transpose[{Re /@ a[[1]], Im /@ a[[1]]}], AxesLabel -> {Re, Im}]
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract