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
 Dividing two Curves
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

KMnO4aq

3 Posts

Posted - 10/27/2011 :  11:20:29 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.5
Operating System: Windows 7 run on parallels desktop

So, what I'm trying to do should be easy, but it is proving to be quite annoying. I have two graphs plotted on the same layer. I am trying to divide the y values of one curve by the Y values of another curve.

The data has two different sets of X values (that run over the same scale but are not at the same increments) so I cannot simply do this in the spreadsheet.

Any suggestions on how I can get Origin to do this for me?

Hideo Fujii

USA
1582 Posts

Posted - 10/27/2011 :  4:59:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Have you tried "Analysis: Mathematics: Simple Curve Math" menu?
Here you can select "Divide" operator, operand=Reference Data. (You may want to choose <New>" if you want to preserve the original curve.)

Or, if you want to control more details as lengthy, you can run the interpolation to get the corresponding X values for both curves. Here is one way to do for the data such that, let's say that you have A(X)B(Y)C(X)D(Y) columns:

1) Highlight col(A), and choose "Analysis: Mathematics: Interpolate/Extrapolate" menu.
2) Turn OFF "Auto" check boxes for Number of Points, X Min, and X Max,
and enter appropriate values, say 101, 0.0, and 1.0, respectively.
This creates an interpolated Y col(E) with initial=0 interval=0.01 .
3) Do the same 2) for col(D) with same settings to create col(F).
4) Add a column, col(G), and open Set Column Values tool, and enter the following formulae:
  col(E)/col(F)
[in Before Formula Scripts]:
  range cE=col(E);
  range cG=col(G);
  cG.xinit=cE.xinit;
  cG.xinc=cE.xinc;

Here the last two commands copy the initial value and the interval of column E to this new column G.

I hope this is helpful.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 10/27/2011 5:31:39 PM
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