files with specific extension

12 次查看(过去 30 天)
how do i find all files in a directory with a specific extension?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by