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
 Set colum values: smallest value of other colums
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mvww

3 Posts

Posted - 09/13/2012 :  11:02:47 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): V8.0724
Operating System: Windows 7

Hello.
I want each row of colum(X) to get the smallest value of other colums.
For example:
Colum(X):
row 1 -> smallest value of colum(A)
row 2 -> smallest value of colum(B)
row 4 -> smallest value of colum(C)
...

Regards.

JacquelineHe

287 Posts

Posted - 09/14/2012 :  12:02:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi

If the X column is the first column, you can use this Labtalk script as following to get the minimum value of others columns to the X column.

1. Select "Window: Command Window" in the menu.
2. Copy this script to the Window, and run it.


// BEGIN SCRIPT
for( int ii = 1 ; ii < wks.ncols; ii+=1)
{
wks.col = ii;
[book1]!Cell(ii,1)=min(wcol(ii+1)) ;
};
// END SCRIPT


Jacqueline
Originlab
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