Display multiple figures / images into one figure / image

4 vues (au cours des 30 derniers jours)
Egbert  Jansen
Egbert Jansen le 3 Juin 2019
Modifié(e) : KSSV le 3 Juin 2019
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

Réponses (1)

KSSV
KSSV le 3 Juin 2019
Modifié(e) : KSSV le 3 Juin 2019
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