Filter löschen
Filter löschen

How to put loop for multiple folders in matlab?

1 Ansicht (letzte 30 Tage)
Anu
Anu am 17 Sep. 2018
Kommentiert: Adam Danz am 18 Sep. 2018
I am having 62 folders. I am having 55 number of images in each folder. how should i put loop for multiple folders

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by