Finding Timer Objects in Memory
Finding All Timer Objects
To find all the timer objects that exist in memory, use the timerfind function. This function returns
an array of timer objects. If you leave off the semicolon, and there
are multiple timer objects in the array, timerfind displays
summary information in a table:
t1 = timer;
t2 = timer;
t3 = timer;
t_array = timerfind
Timer Object Array
Index: ExecutionMode: Period: TimerFcn: Name:
1 singleShot 1 '' timer-3
2 singleShot 1 '' timer-4
3 singleShot 1 '' timer-5
Using timerfind to determine all the timer
objects that exist in memory can be helpful when deleting timer objects.
Back to Top
Finding Invisible Timer Objects
If you set the value of a timer object's ObjectVisibility property
to 'off', the timer object does not appear in listings
of existing timer objects returned by timerfind.
The ObjectVisibility property provides a way for
application developers to prevent end-user access to the timer objects
created by their application.
Objects that are not visible are still valid. If you have access
to the object (for example, from within the M-file that created it),
you can set its properties. To retrieve a list of all the timer objects
in memory, including invisible ones, use the timerfindall function.
Back to Top
 | Deleting Timer Objects from Memory | | Performance |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit