%% Largest Element Indices
% Create a matrix A and compute the largest elements in each column, as well as the row indices of A in which they appear.

A = [1 9 -2; 8 4 -5]

%

[M,I] = max(A)

% Copyright 2015 The MathWorks, Inc.