save images in array in two for loops
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi all,
I want to save my images in arrays so that l can have access to later.
All together l have 63 images and I hope to get all images into the array b.
With my code, I can only have 7 images stored.
Can someone help? Thanks a lot.
b=cell(63,1);
for t=1:9
for i=1:7
I=imread(['calibrate2-P01.00' num2str(t) '00' num2str(i) '.tif']);
b{i}=I;
end
end
0 commentaires
Réponse acceptée
VBBV
le 1 Août 2023
Modifié(e) : VBBV
le 2 Août 2023
b=cell(7,9);
for t=1:9
for i=1:7
I= rand(34,78,2); % image data
b{i,t}=I;
end
end
b = b(:)
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!