Display images in one figure

1 visualización (últimos 30 días)
Leonard Yeo
Leonard Yeo el 17 de Nov. de 2015
Comentada: virpartap singh el 17 de Nov. de 2015
I am using a for loop to display n number of images. How can I display all my images in one figure dynamically? Thanks
  1 comentario
virpartap singh
virpartap singh el 17 de Nov. de 2015
use subplot command

Iniciar sesión para comentar.

Respuesta aceptada

Thorsten
Thorsten el 17 de Nov. de 2015
Editada: Thorsten el 17 de Nov. de 2015
Use subplot:
for i =1:Nimages
I = ... % read ith image
subplot(Nrows, Ncols, i), imshow(I)
end

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by