Iterate through a dir structure to pull out only certain files into another dir structure.

1 次查看(过去 30 天)
I am parsing a directory for a specific file type (.nrrd) and trying to pull them out in another structure list for iterating over. It's not much but I have attached what I have thus far.

回答(1 个)

Ahmet Cecen
Ahmet Cecen 2018-3-3
Just use:
list = dir('*.nrrd')

类别

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