image thumbnail


version (2.6 KB) by Alexandra
retrieves files in specified directory


Updated 04 Jul 2011

View License

recursively retrieves file- or foldernames in specified directory.
Use wildcards and/or multiple inputs for directory or filefilter.
Returns filename with or without complete path or only the foldernames.

Cite As

Alexandra (2021). Listfiles (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Files Under Folders (fuf)

Community Treasure Hunt

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

Start Hunting!