Effacer les filtres
Effacer les filtres

Copy of multiple equal size arrays into one big array using loop

3 vues (au cours des 30 derniers jours)
Muhammad Qasim Mughal
Muhammad Qasim Mughal le 13 Déc 2017
Commenté : KL le 13 Déc 2017
i am working on a project where i want to store all of my equal size images into one variable possible array. i have multiple images of 64x64 size, i have to read all of them form a single folder and need to store them in one variable. please help me i use arr(i,::) where i is counter control variable but its doesn't work

Réponses (1)

KL
KL le 13 Déc 2017
Modifié(e) : KL le 13 Déc 2017
Use counter variable on the third dimension if your matrix is 2D already, for example,
arr(:,:,counterVar)
or a cell array
arr{counterVar}
  2 commentaires
Muhammad Qasim Mughal
Muhammad Qasim Mughal le 13 Déc 2017
thanks a lot.
for training purpose which type of variable is better to save data in array variable or cell variable
KL
KL le 13 Déc 2017
If everything is numeric and of uniform size then I'd suggest a normal matrix.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by