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
José-Luis 2014년 10월 7일

0 개 추천

all_files = dir;
all_dir = all_files([all_files(:).isdir]);
num_dir = numel(all_dir);

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

태그

질문:

YJ
2014년 10월 7일

답변:

2014년 10월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by