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!

Index of maximimum value in random array 1

Status
Not open for further replies.

TGS4

Mechanical
Nov 8, 2004
3,917
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.
 
Replies continue below

Recommended for you

Thanks IRstuff - that is exactly what I was looking for. Star for you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor