files with specific extension

22 vues (au cours des 30 derniers jours)
Baba
Baba le 30 Mai 2012
how do i find all files in a directory with a specific extension?

Réponse acceptée

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

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by