findobj

Finds all objects which have a property named propertyName and the value for such property is propertyValue.

Syntax

findobj(propertyName, propertyValue, ...)

findobj(handleList, propertyName, propertyValue, ...)

Inputs

propertyName
Property name.
Type: string
Dimension: scalar
propertyValue
Value of the property.
Type: double | char | logical | struct | cell | integer
Dimension: scalar | vector | matrix
handleList
Vector of the handles.
Type: double | integer
Dimension: vector

Example

Simple findobj example:

findobj('tag', 'user-defined');

Comments

To find objects that satisfy multiple property conditions, specify additional propertyName and propertyValue parameters. The search can be limited to a subset of objects and their descendants by passing a handle or a handles list as the first parameter.