t.TimerFcn = @(x,y)disp('Hello World!');
5 Start the timer object:
start(t)
The example outputs the following.
StartFcn event occurred at 10-Mar-2004 17:16:59
My start message
Hello World!
Hello World!
StopFcn event occurred at 10-Mar-2004 17:16:59
My stop message
6 Delete the timer object after you are finished with it.
delete(t)
See Also
timer
More About
- “Handling Timer Queuing Conflicts” on page 27-10
See Also