MATLAB: Min of each row of a matrix and their indexes indexesmatrixmin I have the topography data in which I introduced X, Y, Z as follows. How can I find min for each row of Z data and find their X and Y value? Best Answer X=[11 13 15]Y=[43 45 47]Z = [27 25 21;35 38 37 ;42 47 49][~,ii] = min(Z,[],2)out = [X(ii)',Y(:)] Related SolutionsMATLAB: How to decrease the number of points in a matrix I suggest http://www.mathworks.com/help/matlab/ref/spline.htmlx = 1 : length(psdn);x128 = linspace(x(1), x(end), 128);p128 = spline(x, psdn, x128);plot(x128, p128); MATLAB: How to find the minimum value of the wholw matrix A=[52 36 85 24 96;25 25 36 74 65 ; 82 44 55 456 1326 ; 645 684 54 51 40; 54 35 354 45 52] min(min(A)) Related QuestionRemoving the max and min of a vector without removing multiple minimums or maximumsHow to find min or max value in each row of a matrix and its index, if a matrix is 3×2 it will find the min in first rowCreate matrix with periodic increments
Best Answer