dir search multiple files

12 Ansichten (letzte 30 Tage)
Lana
Lana am 19 Sep. 2011
Kommentiert: Steve Grobler am 9 Mär. 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?

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by