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