Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array index of maximum value

Status
Not open for further replies.

REBJ

Aerospace
Oct 4, 2006
5
I have an array of values. I can use the max function, ie. max(array), to output the maximum value in the array. However, I would also like it to output the array index value at the maximum. It's easy to do by graphin it and using the trace function or such, but I wanted the program to find it on its own. Does anyone know of a way to do this?
 
Replies continue below

Recommended for you

Is there some reason you can't use the match function?

TTFN



 
I know nothing about the "match function". So I can't say it won't work.
 
Thanks alot. That works just fine. Just didn't know about the function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor