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!

Index of maximimum value in random array 1

Status
Not open for further replies.

TGS4

Mechanical
Joined
Nov 8, 2004
Messages
3,986
Location
CA
I have an array called S, it is not monotonic, but essentially random. I have found the maximum value using the max(S) function. Now, I would like to know the index at which S is a maximum.

I have searched through these eng-tips archives (best I could with the search tools available), and have searched on PTC's site and used a few google searches, but I have not turned up how to do this.

I suspect that this is a simple matter, so I would appreciate it if someone would please point me in the right direction.
 
Thanks IRstuff - that is exactly what I was looking for. Star for you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top