Skip to Main Content Skip to Search
Product Documentation

gettimeseriesnames - Cell array of names of timeseries objects in tscollection object

Syntax

names = gettimeseriesnames(tsc)

Description

names = gettimeseriesnames(tsc) returns names of timeseries objects in a tscollection object tsc. names is a cell array of strings.

Examples

  1. Create timeseries objects a and b.

    a = timeseries(rand(1000,1),'name','position');
    b = timeseries(rand(1000,1),'name','response');
  2. Create a tscollection object that includes these two time series.

    tsc = tscollection({a,b});
  3. Get the names of the timeseries objects in tsc.

    names = gettimeseriesnames(tsc)
    
    names = 
    
        'position'    'response'

See Also

timeseries | tscollection

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS