This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Find all graphics objects


object_handles = findall(handle_list)
object_handles = findall(handle_list,'property','value',...)


object_handles = findall(handle_list) returns the handles, including hidden handles, of all objects in the hierarchy under the objects identified in handle_list.

object_handles = findall(handle_list,'property','value',...) returns the handles of all objects in the hierarchy under the objects identified in handle_list that have the specified properties set to the specified values.


collapse all

Use findall to find the text object for the x-axis label. Unlike findobj, the findall function finds objects even if the HandleVisibility property is set to 'off'.

txt = xlabel('My x-axis label');

ans = 
a = findall(gcf,'Type','text')
a = 
  3x1 Text array:

  Text    (My x-axis label)

d = findobj(gcf,'Type','text')
d = 
  0x0 empty GraphicsPlaceholder array.


findall is similar to findobj, except that it finds objects even if their HandleVisibility is set to off.

See Also


Introduced before R2006a