How can I find the maximum value and its index in array in MATLAB?
https://stackoverflow.com/questions/13531009/how-can-i-find-the-maximum-value-and-its-index-in-array-in-matlab
WebApr 25, 2017 · You can use max () to get the max value. The max function can also return the index of the maximum value in the vector. To get this, assign the result of the call to max to a two element vector instead of just a single variable. e.g. z is your array, >> [x, y] = max (z) x = 7 y = 4.
DA: 37 PA: 68 MOZ Rank: 63 Up or Down: Up