dir search multiple files

15 vues (au cours des 30 derniers jours)
Lana
Lana le 19 Sep 2011
Commenté : Steve Grobler le 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?

Réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by