dir search multiple files

11 visualizzazioni (ultimi 30 giorni)
Lana
Lana il 19 Set 2011
Commentato: Steve Grobler il 9 Mar 2018
Hello,
I am using the dir command to search a folder for specific file types. I am looking for both *.jpg and *.png files. How do I structure my statement so that I can search for both file types?

Risposte (1)

Fangjun Jiang
Fangjun Jiang il 19 Set 2011
Files=[dir('*.jpg');dir('*.png')]
  3 Commenti
Michael
Michael il 10 Set 2014
I know this is an old link, but it totally saved me. Thanks!
Steve Grobler
Steve Grobler il 9 Mar 2018
helped me too!!

Accedi per commentare.

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by