%% Create timeseries
% Create a timeseries object with 5 scalar data samples, specifying a name for the timeseries.

ts1 = timeseries((1:5)','Name','MyTimeSeries');

% Create a timeseries with 5 data samples, where each sample is a column vector of length 2.

ts2 = timeseries(rand(2,5));

% Create a timeseries with 5 data samples that were sampled in intervals of 10 time units.

ts3 = timeseries((1:5)',[0 10 20 30 40]);

% Copyright 2012 The MathWorks, Inc.