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
 maximum in 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

espenhjo

Norway
20 Posts

Posted - 06/02/2003 :  07:40:33 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
I am a little bit stuck here. I want to get the element in a column that has the maximum value (it is approximately in the middle), and then extract this value and the four values before and the four values after the column maximum. I will then take the average of these values.

What is the best way to get the index of the column maximum value?

Regards,
Espen

Laurie

USA
404 Posts

Posted - 06/02/2003 :  10:03:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Espen,

You can use the limit command. For example to find limiting values for the active dataset:

limit %C;

limit.imax=; //returns the index value for the maximum Y value

Thank you,
Laurie

OriginLab Technical Support
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