MATLAB Function Reference | ![]() ![]() |
Display information about timer object
Syntax
Description
or obj
disp(obj)
displays summary information for timer object, obj
.
If obj
is an array of timer objects, disp
outputs a table of summary information about the timer objects in the array.
In addition to the syntax shown above, you can display summary information for obj
by excluding the semicolon when:
timer
function
Example
The following commands display summary information for the timer object t
.
t = timer Timer Object: timer-1 Timer Settings ExecutionMode: singleShot Period: 1 BusyMode: drop Running: off Callbacks TimerFcn: [] ErrorFcn: [] StartFcn: [] StopFcn: []
This example shows the summary information displayed for an array of timer objects, t_arr
.
disp(t_arr) Timer Object Array Index: ExecutionMode: Period: TimerFcn: Name: 1 singleShot 1 [] timer-1 2 singleShot 1 [] timer-2
See Also
![]() | disp (serial) | divergence | ![]() |