%% Add Event
% Create a timeseries object and add an event to it.

tsin = timeseries((1:5)');
tsout = addevent(tsin,'Event1',0);
tsout.Events

% Copyright 2012 The MathWorks, Inc.