MATLAB Function Reference |
Find timer objects, including invisible objects
Syntax
out = timerfindall out = timerfindall('P1', V1, 'P2', V2,...) out = timerfindall(S) out = timerfindall(obj, 'P1', V1, 'P2', V2,...)
Description
out = timerfindall
returns an array, out
, containing all the timer objects that exist in memory, regardless of the value of the object's ObjectVisibility
property.
out = timerfindall('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 = timerfindall(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 = timerfindall(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 timerfindall .
|
Note that, for most properties, timerfindall
performs case-sensitive searches of property values. For example, if the value of an object's Name
property is 'MyObject'
, timerfindall
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, timerfindall
will find an object with an ExecutionMode
property value of 'singleShot'
or 'singleshot'
.
Examples
Set the ObjectVisibility
property of one of the objects to 'off'
.
Use timerfind
to get a listing of all the timer objects in memory. Note that the listing does not include the timer object (timer-2
) whose ObjectVisibility
property is set to 'off'
.
timerfind Timer Object Array Index: ExecutionMode: Period: TimerFcn: Name: 1 singleShot 1 '' timer-1 2 singleShot 1 '' timer-3
Use timerfindall
to get a listing of all the timer objects in memory. This listing includes the timer object whose ObjectVisibility
property is set to 'off'
.
timerfindall Timer Object Array Index: ExecutionMode: Period: TimerFcn: Name: 1 singleShot 1 '' timer-1 2 singleShot 1 '' timer-2 3 singleShot 1 '' timer-3
See Also
timerfind | title |
© 1994-2005 The MathWorks, Inc.