Main Content

vertcat

Vertically concatenate tscollection objects

Description

example

tscout = vertcat(tsc1,tsc2,…,tscN) vertically concatenates the tscollection objects tsc1, tsc2,…, tscN by appending them. The time vectors of the tscollection objects in the list must not overlap. The last time in a tscollection must occur before the first time of the following tscollection in the list. All tscollection objects must have the same timeseries members.

Examples

collapse all

Create two tscollection objects and vertically concatenate them.

ts1 = timeseries([1.1 2.9 3.7 4.0 3.0]',1:5,...
                 'Name','Speed');
ts2 = timeseries([3.2 4.2 6.2 8.5 1.1]',6:10,...
                 'Name','Speed');
tsc1 = tscollection(ts1);
tsc2 = tscollection(ts2);
tscout = vertcat(tsc1,tsc2)
Time Series Collection Object: unnamed

Time vector characteristics

      Start time            1 seconds
      End time              10 seconds

Member Time Series Objects:

      Speed

Input Arguments

collapse all

List of tscollection objects to concatenate, specified as a comma-separated list of scalar tscollection objects.

Introduced before R2006a