retrieves files in specified directory
Updated 4 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 (2024). Listfiles (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on File Operations in Help Center and MATLAB Answers

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!
Version Published Release Notes