Why does ishandle(0) return 1?

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')?

 Risposta accettata

Friedrich
Friedrich il 10 Ago 2011

0 voti

Hi,
yes 0 is the handle to the default settings/properties and because of this ishandle(0) returns 1.

1 Commento

Jared
Jared il 10 Ago 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.

Accedi per commentare.

Più risposte (1)

Patrick Kalita
Patrick Kalita il 10 Ago 2011

0 voti

0 is the numeric handle to the root object. You can find a list of its properties here.

Categorie

Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by