필터 지우기
필터 지우기

how do I count number of folder?

조회 수: 60 (최근 30일)
YJ
YJ 2014년 10월 7일
답변: Image Analyst 2014년 10월 8일
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일
all_files = dir;
all_dir = all_files([all_files(:).isdir]);
num_dir = numel(all_dir);

추가 답변 (1개)

Image Analyst
Image Analyst 2014년 10월 8일

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by