Documentation

guihandles

Create structure of handles

Syntax

handles = guihandles(object_handle)
handles = guihandles

Description

handles = guihandles(object_handle) returns a structure containing the handles of the objects in a figure, using the value of their Tagproperties as the field names, with the following caveats:

  • Objects are excluded if their Tag properties are empty, or are not legal variable names.

  • If several objects have the same Tag, that field in the structure contains a vector of handles.

  • Objects with hidden handles are included in the structure.

handles = guihandles returns a structure of handles for the current figure.

Was this topic helpful?