Add event to
tsout = addevent(
tsdata.event object and adds it to the
Events property of
tsin. The argument
eventname can be a single event name character vector or a
cell array of event name character vectors.
eventtime is the
corresponding event time or a cell array of event times.
timeseries object and add an event to it.
tsin = timeseries((1:5)'); tsout = addevent(tsin,'Event1',0); tsout.Events
EventData:  Name: 'Event1' Time: 0 Units: 'seconds' StartDate: ''
timeseries, specified as a scalar.
Event, specified as a scalar
tsdata.event object or an
eventname— Event name
Event name, specified as a character vector containing the name of a
tsdata.event object or a cell array containing
multiple event names.
eventtime— Event time
Event time, specified as a scalar time or a cell array of times
corresponding to the events in