Determine timer object validity
validCheck = isvalid(t) determines timer
object validity and returns a logical array,
that contains a
0 where the elements of
invalid timer objects and a
1 where the elements
t are valid timer objects.
An invalid timer object is an object that is deleted from memory
delete and cannot be reused. Use the
to remove an invalid timer object from the workspace.
Object or array of objects of class
Create a timer object. While this timer object is valid,
it cannot start because a
TimerFcn is not defined.
t = timer; out = isvalid(t)
out = 1
Delete the timer object, making it invalid.
delete(t) out1 = isvalid(t)
out1 = 0