Why does ishandle(0) return 1?

1 visualización (últimos 30 días)
Jared
Jared el 10 de Ag. de 2011
I'm not too familiar with graphics handles. Hopefully this is a quick question.
Is it to simplify checks when setting or getting defaults, e.g. for set(0,'blah','blah')?

Respuesta aceptada

Friedrich
Friedrich el 10 de Ag. de 2011
Hi,
yes 0 is the handle to the default settings/properties and because of this ishandle(0) returns 1.
  1 comentario
Jared
Jared el 10 de Ag. de 2011
Thanks for the quick response. I hope this question helps people who run into the same thing. I really think that this should be added to the ishandle documentation.

Iniciar sesión para comentar.

Más respuestas (1)

Patrick Kalita
Patrick Kalita el 10 de Ag. de 2011
0 is the numeric handle to the root object. You can find a list of its properties here.

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by