how to subplot 4 images?
16 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Walter Roberson
2013 年 3 月 20 日
for ii = 1:4
subplot(2,2,ii);
imshow(rand(200,300));
end
Different images for each subplot.
回答 (1 件)
Sean de Wolski
2013 年 3 月 12 日
figure;
for ii = 1:4
subplot(2,2,ii);
imshow('cameraman.tif');
end
2 件のコメント
Sean de Wolski
2013 年 3 月 14 日
@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.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!