getfilenames.m

Do a recursive search for files.

Download
Download

You are now following this Submission

Cite As

Joseph Burgel (2026). getfilenames.m (https://www.mathworks.com/matlabcentral/fileexchange/2118-getfilenames-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0

Bug Fix

Download
1.3.0

Thanks to Kenn Sebesta. His Comments:

Hi, I fixed getfilenames.m to work with Mac. I'm betting it works with
Linux now, too.

The secret ingredient was `fullfile`, which lets Matlab decide for
itself how to format dir calls.

Download
1.2.0

Bug fix on line 36. Changed 'cd' to 'root'. Thanks Elena.

Download
1.1.0

Removed the cd to other folders per suggestion. Now, it stays in the folder where it was called. Also added ability to simply return all subfolder names only if a single root folder argument is passed.

Download
1.0.0

Download