files with specific extension

13 views (last 30 days)
Baba
Baba on 30 May 2012
how do i find all files in a directory with a specific extension?

Accepted Answer

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

More Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!