%% Remove Event
% Create a timeseries and an event, and add the event to the timeseries.

tsin = timeseries((1:5)');
tsevent = tsdata.event('MyEvent',1);
tsin = addevent(tsin,tsevent);
tsin.Events

% Remove the event named MyEvent.

tsout = delevent(tsin,'MyEvent');
tsout.Events

% Copyright 2012 The MathWorks, Inc.