What value will get stored in handles.axes if image is present and if the image is not present? I want check the condition whether image is present or not, and i implemented this
if handles.axes1==0 msgbox('Please insert image. . .', 'Error. . .'); end
but this is not working, please suggest me the best way of doing this.
No products are associated with this question.
You could try
However, if the axes exists but does not contain an image, the axes will still be a handle. But you can test
if isempty(findobj(handles.axes1, 'type', 'image'))
to see whether the axes contains an image