How can I plot or place three or four figures in one figure
Ältere Kommentare anzeigen
I have three figures size 198kb, 208kb and 187kb. How can i make those figures showing in a single panel? say the figure names are EM_SH_01, EM_SH_02,EM_SH_03
Antworten (1)
Keegan Carvalho
am 30 Apr. 2022
Bearbeitet: Keegan Carvalho
am 30 Apr. 2022
If I understood correctly, what you could do is use subplots. You could get your 4 images and then export them as one panel
myimage = imread('image1.jpg');
myimage2 = imread('image2.jpg');
myimage3 = imread('image3.jpg');
myimage4 = imread('image4.jpg');
subplot(2,2,1)
image("myimage")
title('EM_SH_01')
subplot(2,2,2)
image("myimage2")
title('EM_SH_02')
subplot(2,2,3)
image("myimage3")
title('EM_SH_03')
subplot(2,2,4)
image("myimage4")
title('EM_SH_04')
8 Kommentare
Joydeb Saha
am 30 Apr. 2022
Keegan Carvalho
am 30 Apr. 2022
Try resizing the image using imresize().
Regarding the gaps between subplots, I came across this link some time ago.
Joydeb Saha
am 30 Apr. 2022
Image Analyst
am 30 Apr. 2022
Show your code for using montage() or imtile().
Joydeb Saha
am 30 Apr. 2022
Image Analyst
am 30 Apr. 2022
Why are you resizing? Just call montage on the original files. If you need to resize the output, call imresize() on "out". Then call
imshow(out);
Joydeb Saha
am 30 Apr. 2022
Joydeb Saha
am 30 Apr. 2022
Kategorien
Mehr zu Images finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!