I'm not quite sure what you want to do (in particular, what types of images you are trying to display), but here is an example of code that can do what you want:
image1 = imread('cameraman.tif'); % Load a test image
image2 = imread('circles.png'); % Load another test image
hAxes = gca; % Get a handle to the current axes
for iLoop = 1:5, % Loop five times
imshow(image1,'Parent',hAxes);
pause(1);
imshow(image2,'Parent',hAxes);
pause(1);
end
IMSHOW, /, ( ). IMAGE. , for while, (, ).