How can I get the names of files in a given folder name at Matlab?
If you're on linux you can call the find command and process the output. find allows for much more advanced features than just using dir, and can be called using system('find path').
find
dir
system('find path')