%% Largest Element in Each Matrix Row
% Create a matrix and compute the largest element in each row.

A = [1.7 1.2 1.5; 1.3 1.6 1.99]

%

M = max(A,[],2)

% Copyright 2015 The MathWorks, Inc.