Small simple question about displaying multiple pictures or objects

4 ビュー (過去 30 日間)
Steve
Steve 2012 年 6 月 15 日
Hello Experts,
Consider I have n pictures or matrices. I want to display them all in n different figures. Please tell me how to make it efficient and in a smart way.
Thanks a lot in advance.

採用された回答

Ryan
Ryan 2012 年 6 月 15 日
% Generate random pictures
PicNum = 5;
PicSize = 100;
J = zeros(PicSize,PicSize,PicNum); % Always good to preallocate
for n = 1:PicNum
J(:,:,n) = rand(PicSize,PicSize)*255;
end
% Display those pictures
for m = 1:PicNum
figure;imshow(J(:,:,m))
end
  1 件のコメント
Steve
Steve 2012 年 6 月 15 日
Dear Ryan, Great!!! Thanks a lot!!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by