Borrar filtros
Borrar filtros

how do I count number of folder?

61 visualizaciones (últimos 30 días)
YJ
YJ el 7 de Oct. de 2014
Respondida: Image Analyst el 8 de Oct. de 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)

Respuesta aceptada

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

Más respuestas (1)

Image Analyst
Image Analyst el 8 de Oct. de 2014

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by