Find number of files in multiple subfolders with specific extension
8 views (last 30 days)
I have multiple sub folders in one main folder. These multiple sub folders contains files with the same extension .pgm. How do I go about finding the total number of files in all the subfolders with that specific extension?
I am trying the following:
x = '*.pgm';
AA = size(dir(x),1)
How do I then go through each subfolders?