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.

카테고리

도움말 센터File Exchange에서 Creating, 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