MATLAB: Does ishghandle(0) alwys return true

graphicshandlesMATLABundocumented

Why does
ishghandle(0)
return true, even if there is no existent graphic object (actually, I executed this line of code first after Matlab startup).

Best Answer

Because the graphics root always exists:
Using zero is discouraged now, but in versions prior to R2014b was equivalent to groot: