Azzera filtri
Azzera filtri

How to put loop for multiple folders in matlab?

1 visualizzazione (ultimi 30 giorni)
I am having 62 folders. I am having 55 number of images in each folder. how should i put loop for multiple folders

Risposta accettata

Adam Danz
Adam Danz il 17 Set 2018
allFolders = {'C:\Users\Anu\folder1', 'C:\Users\Anu\folder2', 'C:\Users\Anu\folder3'};
for i = 1:length(allFolders)
currentFolder = allFolders{i};
end
  2 Commenti
Anu
Anu il 18 Set 2018
Thank you. but can we put folder1,folder2,... as in the loop, folder(i)??
Adam Danz
Adam Danz il 18 Set 2018
I don't understand your follow-up question. Can you give an example of what you'd like to do?

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Read, Write, and Modify Image in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by