MATLAB: Cant display image in axis

axis image display

I was just able to display the image but now i can not.
i had this code under my axis function
axes(hObject) imshow('myimage');
it was just working but now i am unable to see any image.

Best Answer

Don't put it in quotes. And if it's not uint8, use []:
imshow(myimage, []);
And where did you put this? You certainly should not put it under the CreateFcn or Callback of your axes control.