Help CenterHelp Center
Query tscollection properties
tscollection
tscinfo = get(tsc)
tscinfo = get(tsc,propname)
example
tscinfo = get(tsc) returns all properties of the tscollection object tsc.
tsc
tscinfo = get(tsc,propname) returns the value of the property propname. For a full list of tscollection property names, see tscollection.
propname
collapse all
Create a tscollection object from two timeseries objects and display its properties.
timeseries
ts1 = timeseries(rand(5,1),'Name','ts1'); ts2 = timeseries(rand(5,1),'Name','ts2'); tsc = tscollection({ts1,ts2}); tscinfo = get(tsc)
tscinfo = struct with fields: Name: 'unnamed' Time: [5x1 double] TimeInfo: [1x1 tsdata.timemetadata] Length: 5 ts1: [1x1 timeseries] ts2: [1x1 timeseries]
Display only the Length property.
Length
tsclength = get(tsc,'Length')
tsclength = 5
Input tscollection, specified as a scalar.
Property name, specified as a character vector. For a full list of tscollection property names, see tscollection.
Data Types: char
char
Introduced before R2006a
timeseries | set | tscollection
set
You have a modified version of this example. Do you want to open this example with your edits?
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office