how to subplot 4 images?
Mostrar comentarios más antiguos
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
Jing
el 12 de Mzo. de 2013
Can you provide the code you used?
Jan
el 12 de Mzo. de 2013
Obviously there is a bug in your code. Without seeing the code, it is impossible to guess where the error is.
This is a general problem in forums: The readers do not have the faintest idea about what you are doing, although it is such obviously for yourself. Therefore a general strategy is to write the question, sit back and remember the holiday at the beach. Then read the question again and imagine, whether a reader could have enough information to reconsider the problem.
Mehreen Hussain
el 13 de Mzo. de 2013
Mehreen Hussain
el 13 de Mzo. de 2013
Algorithms Analyst
el 13 de Mzo. de 2013
you need to make indexing for plotting them.......
Mehreen Hussain
el 14 de Mzo. de 2013
Jan
el 14 de Mzo. de 2013
@Mehreen: What about Sean's answers? I do not think, that there is a beeter solution. If you need something else, please explain this in detail.
Mehreen Hussain
el 20 de Mzo. de 2013
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
el 20 de Mzo. de 2013
Respuestas (1)
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
el 14 de Mzo. de 2013
+1, I'd prefer image instead of imshow.
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.
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!