how do I count number of folder?

66 Ansichten (letzte 30 Tage)
YJ
YJ am 7 Okt. 2014
Beantwortet: Image Analyst am 8 Okt. 2014
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)

Akzeptierte Antwort

José-Luis
José-Luis am 7 Okt. 2014
all_files = dir;
all_dir = all_files([all_files(:).isdir]);
num_dir = numel(all_dir);

Weitere Antworten (1)

Image Analyst
Image Analyst am 8 Okt. 2014

Kategorien

Mehr zu File Operations 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