| Programming | ![]() |
Finding All Timer Objects in Memory
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. See Deleting All Existing Timer Objects for an example.
| Deleting Timer Objects from Memory | Finding Invisible Timer Objects | ![]() |
© 1994-2005 The MathWorks, Inc.