tscollection.delsamplefromcollection
tscollection: tc = delsamplefromcollection (tc, 'Index', ind)
tscollection: tc = delsamplefromcollection (tc, 'Value', time)
Remove samples from every member.
tc = delsamplefromcollection (tc, removes the samples ind, a vector of positive integers
not exceeding 'Index',
ind)Length; repeats are allowed and [] removes
nothing. A logical mask is refused, as in MATLAB.
tc = delsamplefromcollection (tc, removes every sample at each of the times time; a
time no sample has removes nothing. For a collection with no
'Value',
time)TimeInfo.StartDate the times are numbers in its units; for one
with a start date they may also be dates as text, or a datetime.
The option names are matched in any case. Removing every sample leaves the members, with no samples.
See also: tscollection.addsampletocollection, timeseries.delsample
Source Code: tscollection
Samples are removed from every member, by position or by time.
tc = tscollection ({timeseries([1; 2; 3], [0; 1; 2], 'Name', 'a'), ...
timeseries([10; 20; 30], [0; 1; 2], 'Name', 'b')});
s = delsamplefromcollection (tc, 'Value', 1);
[s.Time, s.a.Data, s.b.Data]
ans =
0 1 10
2 3 30