max value in a row of matrix matlab code example
Example 1: find location of max value in array matlab
maximum = max(max(A));
[x,y]=find(A==maximum)
Example 2: column of max of each row matlab
[~,I] = max(A,[],2)
maximum = max(max(A));
[x,y]=find(A==maximum)
[~,I] = max(A,[],2)