%% Sum of Vector Elements
% Create a vector and compute the sum of its elements.

A = 1:10;
S = sum(A)

% Copyright 2015 The MathWorks, Inc.