tscollection.horzcat
tscollection: tc = horzcat (tc1, tc2, …)
Join the members of collections.
tc = [tc1, tc2, …] returns one collection
holding the members of every argument, sorted by name, as in MATLAB,
capitals before lower case letters. The collections must have the
same time vector, in the same units, and the same
TimeInfo.StartDate. A member name present in more than one is
taken once when the members are equal in every property, NaN
equal to itself, and refused otherwise; MATLAB compares their data
alone. Names differing only in case are refused. The result keeps
the name of the first collection, where MATLAB names it
'unnamed'.
See also: tscollection.vertcat, tscollection.addts
Source Code: tscollection
[tc1, tc2] joins the members of collections on the same times, sorted by name, as in MATLAB.
tc1 = tscollection (timeseries ([1; 2], [0; 1], 'Name', 'z')); tc2 = tscollection (timeseries ([3; 4], [0; 1], 'Name', 'a')); gettimeseriesnames ([tc1, tc2])
ans =
1x2 cell array
{'a'} {'z'}