Multiple figure in same subplot on figure

1 次查看(过去 30 天)
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

采纳的回答

Iain
Iain 2013-5-23
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.

更多回答(1 个)

David Sanchez
David Sanchez 2013-5-23
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