%% Sum of Matrix Rows
% Create a matrix and compute the sum of the elements in each row.

A = [1 3 2; 4 2 5; 6 1 4]

%

S = sum(A,2)

% Copyright 2015 The MathWorks, Inc.