New timeseries
object with samples
occurring before event
ts1 = gettsbeforeevent(ts,event)
ts1 = gettsbeforeevent(ts,event,n)
ts1 = gettsbeforeevent(ts,event)
returns
a new timeseries
object ts1
with
samples occurring before an event in ts
, where
event can be either a tsdata.event
object or a
string. When event is a tsdata.event
object, the
time defined by event is used. When event is a string, the first tsdata.event
object
in the Events
property of ts
that
matches the event name specifies the time.
ts1 = gettsbeforeevent(ts,event,n)
returns
a new timeseries
object ts1
with
samples occurring before an event in ts
, where
n is the number of the event occurrence with a matching event name.
gettsafterevent
| gettsbeforeatevent
| gettsbetweenevents
| tsdata.event