tsdata.event - Construct event object for timeseries object

Syntax

e = tsdata.event(Name,Time)
e = tsdata.event(Name,Time,'Datenum')

Description

e = tsdata.event(Name,Time) creates an event object with the specified Name that occurs at the time Time. Time can either be a real value or a date string.

e = tsdata.event(Name,Time,'Datenum') uses 'Datenum' to indicate that the Time value is a serial date number generated by the datenum function. The Time value is converted to a date string after the event is created.

Remarks

You add events by using the addevent method.

Fields of the tsdata.event object include the following:

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS