find total number of images in a folder
181 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Elysi Cochin
el 2 de Mzo. de 2013
Comentada: Walter Roberson
el 12 de Ag. de 2019
how to find total number of images in a folder through coding....
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 2 de Mzo. de 2013
Editada: Azzi Abdelmalek
el 2 de Mzo. de 2013
a=dir([yourfolder '/*.jpg'])
out=size(a,1)
1 comentario
Más respuestas (1)
Mritula C
el 17 de Dic. de 2018
Thanks,
a=dir([yourfolder '/*.jpg'])
This worked fine!!
2 comentarios
Walter Roberson
el 12 de Ag. de 2019
The folder name that you wanted to find the images of.
We recommend using fullfile() instead of the code there:
yourfolder = 'C:\Students\CS907\Assignment3\BananaPictures';
a = dir(fullfile(yourfolder, '*.jpg'));
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!