MATLAB: Files with specific extension

files with specific extension

how do i find all files in a directory with a specific extension?

Best Answer

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