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

 採用された回答

Friedrich
Friedrich 2011 年 8 月 10 日

0 投票

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 投票

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

1 件のコメント

Jared
Jared 2011 年 8 月 10 日
Thanks for the links!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

2011 年 8 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by