How do add one picture onto another picture in MATLAB?

7 visualizaciones (últimos 30 días)
Md. Mahadi Hasan
Md. Mahadi Hasan el 26 de Feb. de 2021
Respondida: Image Analyst el 26 de Feb. de 2021
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 comentario
Johnny Cheng
Johnny Cheng el 26 de Feb. de 2021
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

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 26 de Feb. de 2021
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