MATLAB Function Reference Previous page   Next Page
timerfindall

Find timer objects, including invisible objects

Syntax

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 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

Create several timer objects.

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'.

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'.

See Also

get, timer, timerfind


Previous page  timerfind title Next page

© 1994-2005 The MathWorks, Inc.