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...