gettsbetweenevents
Createtimeseries
between events
Syntax
Description
tsout = gettsbetweenevents(
返回一个tsin
,tsevent1
,tsevent2
)timeseries
object with samples occurring between the eventstsevent1
andtsevent2
in the inputtimeseries
tsin
. The argumentstsevent1
andtsevent2
can be eithertsdata.event
objects or character vectors containing the names of the events. Whentsevent1
andtsevent2
aretsdata.event
objects, the times defined by the events specify the time. Whentsevent1
andtsevent2
are character vectors, the firsttsdata.event
object in theEvents
property oftsin
that matches the event names specifies the time.
Examples
Input Arguments
Tips
When the input
timeseries
objecttsin
contains date character vectors andtsevent1
andtsevent2
use numeric time, the time selected is treated as a date that is calculated relative to theStartDate
property intsin.TimeInfo
.When
tsin
uses numeric time andtsevent1
andtsevent2
use calendar dates, the time selected is treated as a numeric value that is not associated with a calendar date.
Version History
Introduced before R2006a