Plotting Spectrum

Q&A for C, C++, and/or C# developers using DPlot

Moderator: DPlotAdmin

Post Reply
siddharth
Posts: 2
Joined: Wed Nov 17, 2010 1:17 am

Plotting Spectrum

Post by siddharth »

Hi Guys,
I am new to Dplot.
I would like to know if I can use the FFT function in Dplot to plot the spectrum.
My input is 2D csv file.
If yes, please let me know how to plot?

Regards
Sid
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Sorry, but you'll have to be more specific. What does your input represent? And what sort of spectrum are you looking for?
Visualize Your Data
support@dplot.com
siddharth
Posts: 2
Joined: Wed Nov 17, 2010 1:17 am

Post by siddharth »

Hi,
Input is time domain data stored in .csv file (2 columns) .
1st column is real and 2nd column is imaginary data.
Number of samples is around 200K.

Regards
Sid
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

DPlot doesn't work directly with imaginary numbers, other than temporary storage when using FFT.

What you can do, though, is first generate a third curve that contains the magnitudes of your complex numbers, with Generate>Y=f(X,Y1,Y2,...) and

Y=sqrt(Y1^2+Y2^2)

and then run the FFT on that third curve.
Visualize Your Data
support@dplot.com
Post Reply