%% Rename timeseries
% Create a tscollection object from a timeseries object. Then, change the timeseries name from Speed to Velocity.

ts = timeseries([3.2 4.2 6.2 8.5 1.1]',1:5,...
                 'Name','Speed');
tscin = tscollection(ts);
tscout = settimeseriesnames(tscin,'Speed','Velocity')

% Copyright 2012 The MathWorks, Inc.