MATLAB: How to display an image within a UIPANEL in MATLAB 7.11 (R2010b)

MATLAB

I want to be able to display an image within a UIPANEL.

Best Answer

This is possible by creating an AXES and by making it a child of the UIPANEL. The image can then be displayed as a child of the AXES. Following is a sample code snippet that describes how this can be done.
f = figure;
uip = uipanel;
myaxes = axes('parent', uip)
load mandrill
imagesc(X)