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')?
0 个评论
采纳的回答
Friedrich
2011-8-10
Hi,
yes 0 is the handle to the default settings/properties and because of this ishandle(0) returns 1.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!