regarding to findall function

Hi, all. It might be a simple question for you, but I got confused on the following sentence:
findall(0, 'type', 'figure').
what this 0 means?
Thanks a lot!

 Respuesta aceptada

Walter Roberson
Walter Roberson el 22 de Abr. de 2018

1 voto

The 0 stands for the root of the graphic object system, the parent of the figures. You would use 0 for findobj or findall if you want to search over all figures.
You might also see reference to groot. groot is the newer name for the graphics root, and you can use either groot or 0 for R2014b or later. Eventually the ability to use 0 might go away, but I would not expect that for years yet.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Programming en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Abr. de 2018

Comentada:

el 22 de Abr. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by