startat
Schedule timer to fire at specified time
Description
Use this function to add a delay between when a timer starts and when the timer
callback function, timerFcn
, will begin firing.
startat(
schedules timer t
,firingTime
)t
to fire at specified time,
firingTime
. A timer fires by executing the callback function,
timerFcn
. firingTime
must be within 25 days of the
current time. Note that if t
has start callback function,
startFcn
, this function will fire when startat
is
called and not at the time specified by firingTime
.
If
t
is an array of timers andfiringTime
is a scalar,startat
sets all the timers to fire at the specified time.If
t
is an array of timers andfiringTime
is an array of the same size ast
,startat
sets each timer to fire at the corresponding time.
startat(t,
starts the timer and
schedules execution of Y,M,D
)TimerFcn
at the year (Y
), month
(M
), and day (D
) that you specify.
startat(t,
also specifies the
hour (Y,M,D,H,MI,S
)H
), minute (MI
), and second
(S
) that you specify.
Examples
Input Arguments
Version History
Introduced before R2006a