%% Maximum Data Sample
% Create a timeseries object and compute the maximum data sample.

ts = timeseries((1:5)');
tsmax = max(ts)

% Copyright 2012 The MathWorks, Inc.