Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Oct 4, 2006
Messages
5
Location
US
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?
 
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.
 
Then you should look in the help file

TTFN



 
Thanks alot. That works just fine. Just didn't know about the function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top