Effacer les filtres
Effacer les filtres

get function

3 vues (au cours des 30 derniers jours)
saloni singhal
saloni singhal le 23 Mai 2012
what does this function do delete(get(0,'childern'))

Réponses (1)

Daniel Shub
Daniel Shub le 23 Mai 2012
It is similar to
close all
in that it makes all the figure windows disappear. It is different in some fundamental ways that are likely unimportant if you are asking this question. Basically when you close a figure window, you give the figure/GUI a chance to clean up after itself and even prevent you from closing it. When you delete a figure you don't give it this chance.
An explanation of the components of the command are that 0 is the root MATLAB graphics object. It is the parent of all "figures" including GUI interfaces. The command get(h, 'children') gets the children of object h, so get(0, 'children') gets the children of the root object. The DELETE is pretty self explanatory.

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by