필터 지우기
필터 지우기

Why does ishandle(0) return 1?

조회 수: 5 (최근 30일)
Jared
Jared 2011년 8월 10일
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.
  댓글 수: 1
Jared
Jared 2011년 8월 10일
Thanks for the links!

댓글을 달려면 로그인하십시오.

카테고리

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