Effacer les filtres
Effacer les filtres

Small simple question about displaying multiple pictures or objects

1 vue (au cours des 30 derniers jours)
Steve
Steve le 15 Juin 2012
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.

Réponse acceptée

Ryan
Ryan le 15 Juin 2012
% 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

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by