You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Returns a list of all files matching a given pattern (*.m, *.mat, data*.xls*, etc) that live anywhere in or below a given starting folder.
For example, >> files = findfiles('*.mat','C:\myfolder'); will find C:\myfolder\foo.mat, C:\myfolder\data.mat, C:\myfolder\mydata\data.mat, etc.
Cite As
Matt Tearle (2026). Recursively search for files (https://www.mathworks.com/matlabcentral/fileexchange/57298-recursively-search-for-files), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.1 (1.92 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
