How to put loop for multiple folders in matlab?

조회 수: 2 (최근 30일)
Anu
Anu 2018년 9월 17일
댓글: Adam Danz 2018년 9월 18일
I am having 62 folders. I am having 55 number of images in each folder. how should i put loop for multiple folders

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by