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
 How to find maximum value in a worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

manesh

Germany
Posts

Posted - 06/22/2007 :  06:29:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.0
Operating System:XP

Dear all,
I am very new into origin programing. I am trying learn by trying to solve some problems. At the moment, I got stuck with something described below.
I have a worksheet with 4 columns, say a(x), b(y1), c(y2), d(y3). I load some data with 2 columns into a and b using a worksheet script. Then I do some calculation in the script with column b and get the values into column c. Then the column c has a peak value. Now in the column d, I want to divide column c by the peak value of that column. How to get the peak value of column c? If anyone has an answer that will be appreciated.
thank you,
Manesh

Mike Buess

USA
3037 Posts

Posted - 06/22/2007 :  08:30:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
sum(col(C));
peakval=sum.max;
col(D)=col(C)/peakval;

Mike Buess
Origin WebRing Member
Go to Top of Page

manesh

Germany
Posts

Posted - 06/22/2007 :  09:25:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks..now it works fine.
Go to Top of Page

manesh

Germany
Posts

Posted - 06/22/2007 :  09:38:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Could you explain how the first two steps works?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 06/22/2007 :  09:54:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Look for the description of the sum() function in your programming guide (Help> Programming)...

LabTalk Language Reference> Function Reference> Statistical Function> Statistics on Datasets

Mike Buess
Origin WebRing Member
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