MATLAB: Locating matrix position of maximum value MATLABmatrix I have a large matrix with many numbers. I would like to calculate the max and min values as well as the cell location (m,n) of each of these values. How can I do this? Best Answer Use the full return argument of min and max[Y,I] = MAX(X)a=magic(10);[Value,Ind]=max(a(:))[M,N]=ind2sub(size(a),Ind) Related SolutionsMATLAB: How to find the maximum of a given matrix and then locate the minimum value along the row of the maximum value [v_max,jj] = max(max(a,[],2));out_min = min(a(jj,:));or[ii,~] = find(max(a(:))==a);out = min(a(ii,:)); MATLAB: How to find minimum values of all lines on matrix B = min(A, [], 2); Related QuestionHow to get maximum value of the matrixHow to find the position of the maximum values in an imageLocating Peaks NaivelyHelp locating peaks
Best Answer