How to substract two data-curves from each other?

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
EdK
Posts: 3
Joined: Tue Mar 09, 2010 9:46 am

How to substract two data-curves from each other?

Post by EdK »

Hi all!

I have a little trouble with a simple task:

If I have two surfaces in one plot, it is easy to e.g. multiply or divide the surfaces with each other by using the Z3=f(Z1,Z2) function.

So I have data sets like
Xa1, Ya1, Za1; Xa2, Ya2, Za2; ...
Xb1, Yb1, Zb1; Xb2, YB2, ZB2; ...
...

and can easily multiplicate or divide surface a and surface b, which are defined by the data points.

However, I have been looking for a while now to do exactly the same for 2D data but did not find anything...

So I have
Xa1, Ya1; Xa2, Ya2; ...
Xb1, Yb1; Xb2, YB2; ...
...

Is there any possibility to multiply or divide the curves a and b resulting from these data points (not functions!)?

I am currently using the trial version of DPlot but I am going to order it ASAP.

Thanks for your help!

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

Post by DPlotAdmin »

Generate->Y=f(X,Y1,Y2,...)

Y=Y1*Y2 (or whatever)

The result will be evenly-spaced in X, not necessarily at the input X's. That function does a linear interpolation between X's that bound an output X to find the Y1 and Y2 values.
Visualize Your Data
support@dplot.com
EdK
Posts: 3
Joined: Tue Mar 09, 2010 9:46 am

Post by EdK »

Thanks a lot!
I will try that!
Post Reply