%% Event Times
% Create an array of tsdata.event objects and display their times in seconds.

tse1 = tsdata.event('MyEvent',1);
tse2 = tsdata.event('MyEvent',2);
tse = [tse1 tse2];
eventtimes = getTimeStr(tse,'seconds')

% Copyright 2012 The MathWorks, Inc.