Small simple question about displaying multiple pictures or objects
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!