%% Sum of Sample Data
% Create a timeseries object and compute the sum of the sample data.

ts = timeseries((1:5)');
tssum = sum(ts)

% Copyright 2012 The MathWorks, Inc.