Remove sample from timeseries object
ts1 = delsample(ts,Name,Value)
Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.
The indices of the time vector that correspond to the samples you want to delete.
The time values that correspond to the samples you want to delete.
Create a timeseries object, and then remove samples:
ts = timeseries(rand(5,1),[10 20 30 40 50]); % Remove data sample at time index 1 ts1 = delsample(ts,'Index', 1) % Remove data sample at time value 20: ts2 = delsample(ts,'Value', )