MATLAB: Find total number of images in a folder

find total number of images in a folder

how to find total number of images in a folder through coding….

Best Answer

a=dir([yourfolder '/*.jpg'])
out=size(a,1)