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

KAC

Germany
Posts

Posted - 11/18/2004 :  2:30:30 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR0
Operating System: XP SP1

Hello!

Very simple question, but not for me:)
I have 300 columns in worksheet and i want to normalize all columns on the MAX from each.

It is so boring to do manualy.

Does somebody knows how to do it.


THX.

easwar

USA
1965 Posts

Posted - 11/18/2004 :  4:27:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can do this with LabTalk script such as pasted below. To execute this script, make your worksheet the active page (by clicking and selecting it), then open the Script Window (menu item: Window->Script Window), then copy and paste all lines of code from below, select/highlight all the lines in the script window, and press Enter.

Easwar
OriginLab


// get number of columns in wks
numcols=wks.ncols;
// loop over all columns
for( i = 1; i <= numcols; i++ )
{
// get stats on col
sum( %( %h, i ) );
// divide col by max value
%( %h, i ) /= sum.max;
}


Go to Top of Page

KAC

Germany
Posts

Posted - 11/18/2004 :  6:09:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
SUPER!!!!!!

THX!!!

it works properly.
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