The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Root Sum Square and Combining Graphs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a_user

USA
0 Posts

Posted - 08/14/1998 :  7:28:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am trying to perform some comparisons and have the need to perform the
following:

1) Plot 2 (or more) curves, and generate a composite of the two. This
composite will consist of the highest Y value at each given X value. The two
curves have different sets of X values, although they are over the same general
range.

2) Plot 2 (or more) curves and generate a curve which is the Root Sum Square of
the curves. These curves have different sets of X values, although they are
over the same general range.

Any advice or guidance on how to perform this would be greatly appreciated.

Peter

a_user

USA
0 Posts

Posted - 08/14/1998 :  7:29:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Interpolating datasets and calculations using datasets

When you have two or more datasets that cover a similar X range, but with
different X values, you can use the Interpolation menu option under
Analysis:Inter/Extrapolate to generate datasets that cover that same range
and have the same X values. Supply the dialog with specific Min and Max
values as well as the desired resolution (number of points) and give the
datasets some useful name - for this example, lets call them DataA,
DataB, etc.
(Remember that menu operations usually work on the Active Dataset which is
the dataset with the check mark in the graph's Data menu.)

Once you have these new datasets plotted you can use Origin's ability to
use math operators on datasets to create new datasets. You will need to
create worksheets for the interpolated datasets:
Generate a new legend for the combined plots (Plot:New Legend)
Open the Plot Details dialog for each of the interpolated datasets
(Double-click on their symbols in the legend) and click the
Worksheet button to generate their worksheets
Give the Y column a name - B
Select View:Show X Column to include the X datasets
Add a new column to the DataA worksheet (C)

Now in the Script window (under the Window menu option), you can type:

dataa_c=dataa_b>datab_b?dataa_b atab_b

This statement compares the DataA_B column to the DataB_B column and puts
the larger value in the DataA_C column. This statement would need to be
replaced with a short script to handle the situation of three or more
curves.

Or you could type:
dataa_c=sqrt(((dataa_b)^2+(datab_b)^2)/2)

Which (if I recall my math correctly) will give you the RMS value - modify
it for the Root Sum Square requirement.

Naturally all this could be automated and made a new menu item in Origin
by making use of our LabTalk script language. Microcal Software can
provide consulting that will do this type of custom automation. EMail
consulting@microcal.com or call.

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000