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

DFingerhut

3 Posts

Posted - 07/04/2011 :  5:48:50 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I have a worksheet with 2 coulumns of x and y values. From these values I calculate in a third column the modulus sqrt(col(a)^2+col(b)^2). After that I calculate in coulumn 4 and row 1 the maxiumum value of the modulus by

sum(col(c));
col(d)[1]=sum.max;

Now I would like to put in column 5 and 6 row 1 automatically the appropriate values from column A (x) and B (y) of the maximum Modulus value.

Hope somebody could help me!
Daniel

Hideo Fujii

USA
1582 Posts

Posted - 07/05/2011 :  4:50:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Daniel,

For col(A)'s max modulus with col(D)[1], you can add two columns, E and F. Then, you can use the Set Col Values formula for col(E):

  rmod(col(A),col(D)[1])

(Here rmod gives the modulus of col(A) divided by col(D)[1].)
then the "Before Formula Script" script for col(F):

  sum(col(e));
  col(f)[1]=sum.max;


Add another two columns to calculate for column B.

For automatic recalculation of Set Column Values, set the "Recalculate" mode to "Auto" in that tool so that when you change the original data, it triggers the recalculation to update the result.

Hope this is what you're looking for.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 07/05/2011 5:04:33 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