MATLAB: How to find column index of max value for each row of a matrix 378×5 size index hi i have a matrix size 378×5, how do i find the index column of the maximum value of each row? Thanks Best Answer [~,I] = max(A,[],2) Related SolutionsMATLAB: Minimum value of row A = magic(6); % Given array.[MN,I] = min(A,[],2) % Minimum of each row, and indexAlso, whenever you have a question like this, you should turn to the MATLAB documentation. For example, you know you want to find the minimum, so do this:docsearch('minimum') MATLAB: Finding the index of a row with a maximum value [junk, index] = max(Z(:,1)); Related QuestionMaxHow to find the max value of rows in a tableHow change font sizeVector/martix limit size
Best Answer