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 of the matrix?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gjes

3 Posts

Posted - 05/04/2010 :  10:47:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:
Hello everyone,
I have a small question.How can I find a maximum/minimum value of a matrix?
Thanks!

gjes

3 Posts

Posted - 05/05/2010 :  03:46:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
sorry!The version of Origin:
Origin Ver. and Service Release (Select Help-->About Origin):Origin8Pro
Operating System:WinXP
Go to Top of Page

larry_lan

China
Posts

Posted - 05/05/2010 :  04:18:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use the max and min function.

If find the maximum value on the current active matrix sheet, type

max(MatrixWindowName) =

in script window. If find the minimum value on specified matrix sheet, you'd better use range variables. Such as:

range rm = [mbook1]msheet1!1;
ty "The minimun value of the matrix is $(min(rm))";


Please refer to our LabTalk help for more information.

Thanks
Larry
OriginLab Technical Services

Edited by - larry_lan on 05/05/2010 04:19:29 AM
Go to Top of Page

gjes

3 Posts

Posted - 05/05/2010 :  07:15:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by larry_lan

Use the max and min function.

If find the maximum value on the current active matrix sheet, type

max(MatrixWindowName) =

in script window. If find the minimum value on specified matrix sheet, you'd better use range variables. Such as:

range rm = [mbook1]msheet1!1;
ty "The minimun value of the matrix is $(min(rm))";


Please refer to our LabTalk help for more information.

Thanks
Larry
OriginLab Technical Services


Thanks! Larry.
I have tried your method:
MAX(MBOOK8)=
but it returns the firtst data point(1st row and 1st col),I don't know why.
Go to Top of Page

larry_lan

China
Posts

Posted - 05/06/2010 :  04:03:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please update your Origin 8 to SR6.

Thanks
Larry
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