MATLAB: Finding maximum value of a column matrix so i have this matrix 193X2 where column 1 is the time and column 2 is cars counted i want to find THE TIME where the maximum car is counted can someone help me? Best Answer [~, idx] = max(YourMatrix(:,2)); THE_TIME = YourMatrix(idx,1); Related SolutionsMATLAB: Find the minimum of a matrix [val idx] = min(X(:,j));idx will be the row number. MATLAB: Find indices in accumarray syntax function idx = maxidx(x) [~, idx] = max(x);function idx = minidx(x) [~, idx] = min(x);Together with accumarray(OrbNO,elev,[],@(x) maxidx(x)-minidx(x), 0); Related QuestionFinding a 2d block with highest average inside a 2d windowCould anyone clarify the doubt with respect to the following codeOutputing a correspond element of another variableComparing two matrices satisfying two conditions.
Best Answer