Display multiple figures / images into one figure / image

5 次查看(过去 30 天)
I have 6 figures: country1.fig, country2.fig etc. I have also saved them into png, see the file attached.
Is there a way to display the figures / images in one figure / image, in a 3x2 matrix, to compare the 6 countries.
I think subplot is not going to work because the figures are made in a for loop, so after making figure 1, the data for figure 1 will be overwritten by the data for figure 2.
I have also attached an image of how it should look.
Thanks!
WYPpVKj4SuivUtDUcVOHhA_thumb_598.jpg

回答(1 个)

KSSV
KSSV 2019-6-3
编辑:KSSV 2019-6-3
Read about subplot
for i = 1:6
subplot(3,2,i)
plot(rand(10,1))
end

Community Treasure Hunt

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

Start Hunting!

Translated by