how do I count number of folder?
조회 수: 67 (최근 30일)
이전 댓글 표시
I do know how to count the number of files within the folder like this,
but is their way to file the number of folder inside the certain folder? (not file)
채택된 답변
José-Luis
2014년 10월 7일
all_files = dir;
all_dir = all_files([all_files(:).isdir]);
num_dir = numel(all_dir);
추가 답변 (1개)
Image Analyst
2014년 10월 8일
I think I answered this in your other question on it: http://www.mathworks.com/matlabcentral/answers/157750-changing-directory-to-do-same-work#answer_154298
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!