length

Length of tscollection time vector

Description

example

tsclength = length(tsc) returns the number of elements in the time vector of a tscollection object.

Examples

collapse all

Create a tscollection object and display the length of its time vector.

ts = timeseries([1.1 2.9 3.7 4.0 3.0]',1:5);
tsc = tscollection(ts);
tsclength = length(tsc)
tsclength = 5

Input Arguments

collapse all

Input tscollection, specified as a scalar.

Introduced before R2006a