This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

gettimeseriesnames

Names of timeseries in tscollection

Syntax

tsnames = gettimeseriesnames(tsc)

Description

example

tsnames = gettimeseriesnames(tsc) returns a cell array of character vectors containing the names of the timeseries objects in the tscollection object tsc.

Examples

collapse all

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)
tsnames = 1x2 cell array
    {'Acceleration'}    {'Speed'}

Input Arguments

collapse all

Input tscollection, specified as a scalar.

Introduced before R2006a