MATLAB: Is there a simple way to get the figure handle having any child object

childrenfigure handlegco

I have clicked an object, get its handle with gco. This could be the figure handle itself, one of the axes in this figure or an axes child object depending on where I click. The command findobj searches downward. Is there a similar command to find the objects figure?
Thanks.

Best Answer

doc ancestor
Related Question