|MATLAB Function Reference|
Start timer(s) running at the specified time
starts the timer running, represented by the timer object
obj, at the time specified by the serial date number
obj is an array of timer objects,
startat starts all the timers running at the specified time. Use the
timer function to create the timer object.
startat sets the
Running property of the timer object,
TimerFcn callbacks, and executes the
The serial date number,
time, indicates the number of days that have elapsed since 1-Jan-0000 (starting at 1). See
datenum for additional information about serial date numbers.
starts the timer running at the time specified by the date string
S. The date string must use date format 0, 1, 2, 6, 13, 14, 15, 16, or 23, as defined by the
datestr function. Date strings with two-character years are interpreted to be within the 100 years centered around the current year.
uses the specified pivot year as the starting year of the 100-year range in which a two-character year resides. The default pivot year is the current year minus 50 years.
start the timer at the year (
Y), month (
M), and day (
D must be arrays of the same size (or they can be a scalar).
startat(obj,Y,M,D,H,MI,S) start the timer at the year (
Y), month (
MI), and second(
S must be arrays of the same size (or they can be a scalar). Values outside the normal range of each array are automatically carried to the next unit (for example month values greater than 12 are carried to years). Month values less than 1 are set to be 1; all other units can wrap and have valid negative values.
The timer stops running if one of the following conditions apply:
TimerFcncallbacks specified in
TasksToExecutehave been executed.
stop(obj)command is issued.
This example uses a timer object to execute a function at a specified time.
This example uses a timer to display a message when an hour has elapsed.