tsOut = gettsbetweenevents(ts, firstEvent, secondEvent)
| Parameter | Description |
|---|---|
| ts | Input timeseries object. |
| firstEvent | Name of the first event. |
| secondEvent | Name of the second event. |
| Parameter | Description |
|---|---|
| tsOut | Output timeseries object containing the selected samples. |
gettsbetweenevents Keeps samples whose time is between the named event times, including the boundary samples.
ts = timeseries([1; 2; 3], [10; 11; 12]);
ts = addevent(ts, tsdata.event('start', 10));
ts = addevent(ts, tsdata.event('stop', 11));
gettsbetweenevents(ts, 'start', 'stop').Data
| Version | Description |
|---|---|
| 2.0.0 | initial version |