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
 All Forums
 Origin Forum
 Origin Forum
 Dividing two Curves

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
KMnO4aq Posted - 10/27/2011 : 11:20:29 AM
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?
1   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 10/27/2011 : 4:59:42 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000