|
|
| File Information |
| Description |
Returns a cell array of all files matching the wildcard expression "refiles" beginning in the root folder "root". Includes subdirectories.
%---Example:
mfiles = getfilenames('c:\','*.m') will return all .m files on the c drive to the cell array "mfiles".
|
| MATLAB release |
MATLAB 6.1 (R12.1)
|
| Other requirements |
Tested only on Win 2000 |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 07 Apr 2009 |
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. |
| 16 Apr 2009 |
Bug fix on line 36. Changed 'cd' to 'root'. Thanks Elena. |
| 28 May 2009 |
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. |
| 28 May 2009 |
Bug Fix |
|
Contact us at files@mathworks.com