MATLAB: How to check a specific axes has an image or not

axesMATLAB

I am using app designer in Matlab 2018a and I replaces a button for testing which is disable.
I know how to enable it but I want to enable it when I have an image on axis.

Best Answer

you can get the 'Children' property of the axes.
axes_handle.Children
%or
get(axes_handle,'Children')