Multiple figure in same subplot on figure

1 Ansicht (letzte 30 Tage)
nedo nodo
nedo nodo am 23 Mai 2013
Hi,
I would like to know if it is possible to plot an image with several subplots, each of them with multiple figures.
subplot(1,2,1)
imshow(image1)
imshow(image2)
subplot(1,2,2)
imshow(image1)
imshow(image2)
Thank you in advance

Akzeptierte Antwort

Iain
Iain am 23 Mai 2013
I think you would do better by using more subplots: subplot(2,2,1) etc.
If you just want two images next to each other, and if they're the same size, you can concatenate them and display them both at once: imshow([image1 , or ; image2]), (choose between , and ; for how you want them displayed.), but if there is a mean level change between the images, they won't look quite right.
You could also have more subplots, and use "get" & "set" to position them as desired.

Weitere Antworten (1)

David Sanchez
David Sanchez am 23 Mai 2013
subplot(2,2,1)
imshow(image1)
subplot(2,2,2)
imshow(image2)
subplot(2,2,3)
imshow(image1)
subplot(2,2,4)
imshow(image2)

Community Treasure Hunt

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

Start Hunting!

Translated by