Why does ishandle(0) return 1?

5 次查看(过去 30 天)
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')?

采纳的回答

Friedrich
Friedrich 2011-8-10
Hi,
yes 0 is the handle to the default settings/properties and because of this ishandle(0) returns 1.
  1 个评论
Jared
Jared 2011-8-10
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.

请先登录,再进行评论。

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by