By default, the timer function callbacks pass the timer object as the first argument, and the event data associated with the callback as the second argument. Therefore, you always have access to the timer object from within its callback.
For more information and to see an example of how to define a timer callback, refer to the "Creating Callback Functions" section of the following URL:
<http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_prog/f9-39541.html>
Best Answer