files with specific extension

16 visualizzazioni (ultimi 30 giorni)
Baba
Baba il 30 Mag 2012
how do i find all files in a directory with a specific extension?

Risposta accettata

Thomas
Thomas il 30 Mag 2012
use the dir command
to find all files in a directory with the .m extensison us
dir('*.m')
for jpg
dir('*.jpg')
etc...

Più risposte (0)

Categorie

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

Community Treasure Hunt

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

Start Hunting!

Translated by