MATLAB Function Reference |
Syntax
out = timerfind out = timerfind('P1', V1, 'P2', V2,...) out = timerfind(S) out = timerfind(obj, 'P1', V1, 'P2', V2,...)
Description
out = timerfind
returns an array, out
, of all the timer objects that exist in memory.
out = timerfind('P1', V1, 'P2', V2,...)
returns an array, out
, of timer objects whose property values match those passed as parameter/value pairs, P1
, V1
, P2
, V2
. Parameter/value pairs may be specified as a cell array.
out = timerfind(S)
returns an array, out
, of timer objects whose property values match those defined in the structure, S
. The field names of S
are timer object property names and the field values are the corresponding property values.
out = timerfind(obj, 'P1', V1, 'P2', V2,...)
restricts the search for matching parameter/value pairs to the timer objects listed in obj
. obj
can be an array of timer objects.
Note
When specifying parameter/value pairs, you can use any mixture of strings, structures, and cell arrays in the same call to timerfind .
|
Note that, for most properties, timerfind
performs case-sensitive searches of property values. For example, if the value of an object's Name
property is 'MyObject'
, timerfind
will not find a match if you specify 'myobject'
. Use the get
function to determine the exact format of a property value. However, properties that have an enumerated list of possible values are not case sensitive. For example, timerfind
will find an object with an ExecutionMode
property value of 'singleShot'
or 'singleshot'
.
Examples
These examples use timerfind
to find timer objects with the specified property values.
t1 = timer('Tag', 'broadcastProgress', 'Period', 5); t2 = timer('Tag', 'displayProgress'); out1 = timerfind('Tag', 'displayProgress') out2 = timerfind({'Period', 'Tag'}, {5, 'broadcastProgress'})
See Also
timer | timerfindall |
© 1994-2005 The MathWorks, Inc.