![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/188926/image.jpeg)
open an image in another image
1 view (last 30 days)
Show older comments
hi. I want to open an image in another image. How should I do this? .like this pic
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190983/image.png)
0 Comments
Accepted Answer
Anton Semechko
on 2 Jun 2018
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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/188926/image.jpeg)
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!