Matlab: Number of files in a folder excluding the file names information -
i looking way count number of files in folder path without caring names of files. dir function extracts names unnecessary specific application.
since i'm looking @ 100 folders , each folder includes 35000 files in it, time consuming if use "dir" function.
any appreciated.
do
somedir = 'c:\users\you\somepath\' //whatever directory want [status,cmdout] = system(['dir ' somedir '*.* /s'])
and can parse out number of files cmdout
this should faster because running system command lose overhead of matlab.
Comments
Post a Comment