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 for Programming
 LabTalk Forum
 normalize a column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ynnig

USA
Posts

Posted - 06/12/2008 :  2:21:06 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 sr6
Operating System: WinXP Pro

Hi~

I would like to write a script that will normalize data in a column, according to the minimum (not the maximum, which is the default in 7.5), and then place the result in a separate column. This can be done with Set Column Values, I just need to know what the syntax is for this task.

Thanks!

Ginny

larry_lan

China
Posts

Posted - 06/13/2008 :  03:42:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
In 75, you need to calculate the minimum value first, say:

sum(col(1));

And then set column values like:

col(2) = col(1)/sum.min;

Thanks
Larry
OriginLab Technical Services
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