Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

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

Elysi Cochin

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);
Azzi Abdelmalek

Contact us