MATLAB: Return index of biggest element in a row-matrix. matrix array Friends, I have a row matrix. i have to return the index of the biggest element in the row. how can i do this ? thankq… Best Answer A - your matrix[c,index] = max(A,[],2) Related SolutionsMATLAB: The minimum value of a matrix array and its index A = rand(1,5); %example matrix[mini,index] = min(A) %mini= minimum value, index = index of minimum valueorA = rand(5) %example 5x5 matrix[minRow,indexRow]=min(A)[minCol,indexCol]=min(minRow)index = [indexRow(indexCol) indexCol] %minimum value o 5x5 matrix (row index, column index)or can use: (https://es.mathworks.com/help/matlab/ref/min.html)A = rand(5)[M,I] = min(A(:));[I_row, I_col] = ind2sub(size(A),I);index = [I_row I_col] MATLAB: How to find biggest element of the array max(A(:)) Related QuestionMaximum of a row in a matrixFinding index of min value in a matrixBiggest value in a vectorHow to find column index of max value for each row of a matrix 378×5 sizeHow to find the nine biggest numbers
Best Answer