How do add one picture onto another picture in MATLAB?

9 次查看(过去 30 天)
Using "hold on and hold off" function we can show multple output in a single plot figure, Similerly I want to show two Image in a single figure like sample's one.
should I use "imshow" funtion or something else?
  1 个评论
Johnny Cheng
Johnny Cheng 2021-2-26
Yes you can do use imshow to display multiple images in a single figure using tiledlayout functions:
See second bullet point in imshow tips: https://www.mathworks.com/help/images/ref/imshow.html?searchHighlight=imshow&s_tid=srchtitle#bvmnrxj-8

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2021-2-26
subplot is one way
subplot(2, 2, 1);
imshow(image1);
subplot(2, 2, 2);
imshow(image2);
subplot(2, 2, 3);
imshow(image3);
subplot(2, 2, 4);
imshow(image4);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by