Why does ishandle(0) return 1?
5 views (last 30 days)
Show older comments
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')?
0 Comments
Accepted Answer
Friedrich
on 10 Aug 2011
Hi,
yes 0 is the handle to the default settings/properties and because of this ishandle(0) returns 1.
More Answers (1)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!