comparison m-toolbox/classes/@LTPDARepositoryManager/deleteTimer.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % DELETETIMER delets the input timer.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % description: DELETETIMER delets the input timer.
5 %
6 % call: deleteTimer(rm, t)
7 %
8 % inputs rm - Repository manager
9 % t - Property name of a timer.
10 %
11 % version: $Id: deleteTimer.m,v 1.4 2011/02/03 13:44:45 ingo Exp $
12 %
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15 function deleteTimer(rm, tName)
16
17 if isa(rm.(tName), 'timer')
18 stop(rm.(tName));
19 delete(rm.(tName));
20 end
21
22 rm.(tName) = [];
23
24 end