MATLAB: Open an image in another image

open an image in another image

hi. I want to open an image in another image. How should I do this? .like this pic

Best Answer

Here is an example:
im1=imread('peppers.png');
im2=imread('football.jpg');
im3=im1;
im3(1:size(im2,1),1:size(im2,2),:)=im2;
figure('color','w')
imshow(im3)