%% timeseries Names
% Create a tscollection object from two timeseries objects. Then, display the names of the timeseries in the tscollection.

ts1 = timeseries([1.1 2.9 3.7 4.0 3.0]',1:5,...
                 'Name','Acceleration');
ts2 = timeseries([3.2 4.2 6.2 8.5 1.1]',1:5,...
                 'Name','Speed');
tsc = tscollection({ts1;ts2});
tsnames = gettimeseriesnames(tsc)

% Copyright 2012 The MathWorks, Inc.