Main Content

guihandles

Create structure containing all child objects of Figure

Syntax

handles = guihandles(object_handle)
handles = guihandles

Description

handles = guihandles(object_handle) returns a structure containing all child objects in a Figure. The object_handle argument can be a Figure object or any child component of a Figure. Any UI or graphics components you placed in the Figure are listed with field names that match their Tag property.

The handles structure typically contains one field for every child object, but there are some exceptions:

  • Objects that have an empty Tag property are not listed.

  • Objects with hidden handles are listed.

  • When multiple objects have the same Tag property, that field in the structure contains a vector of objects.

handles = guihandles returns a structure containing all child objects for the current Figure.

Version History

Introduced before R2006a