%% Sum of Matrix Columns
% Create a matrix and compute the sum of the elements in each column.

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

%

S = sum(A)

% Copyright 2015 The MathWorks, Inc.