tscollection.removets
tscollection: tc = removets (tc, names)
Remove members from a collection.
tc = removets (tc, names) removes the members
names, a character vector, a cell array of character vectors or a
string array, each the exact name of a member. The time vector stays,
so removing every member leaves a collection with times and no members.
A name that is no member is refused, where MATLAB ignores it.
See also: tscollection.addts, tscollection.gettimeseriesnames
Source Code: tscollection
removets removes members by name; the times stay.
tc = tscollection ({timeseries([1; 2], [0; 1], 'Name', 'a'), ...
timeseries([3; 4], [0; 1], 'Name', 'b')});
tc = removets (tc, 'a');
gettimeseriesnames (tc)
ans =
1x1 cell array
{'b'}
tc.Time'
ans = 0 1