MATLAB Answers

find total number of images in a folder

Asked by Elysi Cochin on 2 Mar 2013

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

  0 Comments

Products

No products are associated with this question.

1 Answer

Answer by Azzi Abdelmalek
on 2 Mar 2013
Edited by Azzi Abdelmalek
on 2 Mar 2013
 Accepted answer
a=dir([yourfolder '/*.jpg'])
out=size(a,1)

  1 Comment

Walter Roberson
on 2 Mar 2013

or

a = dir('*.jpeg');
n = numel(a);

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today