matlab get index of max in vector code example Example: find location of max value in array matlab Click to copymaximum = max(max(A)); [x,y]=find(A==maximum)