Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

findall

Find all graphics objects

Syntax

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

Description

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.

Examples

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'.

plot(1:10)
txt = xlabel('My x-axis label');

txt.HandleVisibility
ans = 
'off'
a = findall(gcf,'Type','text')
a = 
  3×1 Text array:

  Text    (My x-axis label)
  Text
  Text

d = findobj(gcf,'Type','text')
d = 

  0×0 empty GraphicsPlaceholder array.

Tips

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

See Also

|

Introduced before R2006a

Was this topic helpful?