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);