| MATLAB® | ![]() |
ts = delevent(ts,event)
ts = delevent(ts,events)
ts = delevent(ts,event,n)
ts = delevent(ts,event) removes the tsdata.event object from the ts.events property, where event is an event name string.
ts = delevent(ts,events) removes the tsdata.event object from the ts.events property, where events is a cell array of event name strings.
ts = delevent(ts,event,n) removes the nth tsdata.event object from the ts.events property. event is the name of the tsdata.event object.
The following example shows how to remove an event from a timeseries object:
ts = timeseries(rand(5,4))
Create an event object called 'test' such that the event occurs at time 3.
e = tsdata.event('test',3)Add the event object to the time series ts.
ts = addevent(ts,e)
Remove the event object from the time series ts.
ts = delevent(ts,'test')
addevent, timeseries, tsdata.event, tsprops
![]() | deleteproperty | delsample | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |