Borrar filtros
Borrar filtros

how to subplot 4 images?

17 visualizaciones (últimos 30 días)
Mehreen Hussain
Mehreen Hussain el 12 de Mzo. de 2013
i've captured 4 images of same scene from different angles and i want to subplot all 4 images but problem is that only two images are subplotted when i subplot the third one it says index exceeds number of subplots ,what it means ? i'm stuck in it plz help
  10 comentarios
Walter Roberson
Walter Roberson el 20 de Mzo. de 2013
for ii = 1:4
subplot(2,2,ii);
imshow(rand(200,300));
end
Different images for each subplot.
Mehreen Hussain
Mehreen Hussain el 20 de Mzo. de 2013
sir its not working,it is giving a dotted gray image in all 4 infact it is not showing the actuall captured images..struct in it plz help

Iniciar sesión para comentar.

Respuestas (1)

Sean de Wolski
Sean de Wolski el 12 de Mzo. de 2013
figure;
for ii = 1:4
subplot(2,2,ii);
imshow('cameraman.tif');
end
  2 comentarios
Jan
Jan el 14 de Mzo. de 2013
+1, I'd prefer image instead of imshow.
Sean de Wolski
Sean de Wolski el 14 de Mzo. de 2013
@Jan, why?
Other than for just preallicating an image into existence (i.e. image(1)); I've never really found much other use for image. imshow does all of the meta stuff that I expect with an image for free.

Iniciar sesión para comentar.

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by