Create structure of handles


handles = guihandles(object_handle)
handles = guihandles


handles = guihandles(object_handle) returns a structure containing the handles of the objects in a figure, using the value of their Tag properties 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.

Introduced before R2006a

Was this topic helpful?