findfiles

This function finds all files with a specified extension in a directory and all subdirectories.
3.7K Downloads
Updated 23 Mar 2001

No License

This function finds all files with a specified extension in a directory and all subdirectories. The file names are returned as a cell array of the fully specified path to the file.

There is also an option to turn off the recursive search of subdirectories.

This has been tested under MATLAB 6, Release 12

Cite As

Tony Christney (2024). findfiles (https://www.mathworks.com/matlabcentral/fileexchange/172-findfiles), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Search Path in Help Center and MATLAB Answers
Tags Add Tags
Acknowledgements

Inspired: findFiles, GetExtension, Another recursive find file

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0