subdir: a recursive file search
by Kelly Kearney
07 Aug 2007
(Updated 17 Oct 2008)
Performs a recursive file search using same input and output format as dir function
|
Watch this File
|
| File Information |
| Description |
This function performs a recursive file search. Its advantage over other FEX programs offering the same thing is that it uses the same input and output format as Matlab's dir function, and can therefore be used interchangeably.
Example:
>> a = subdir(fullfile(matlabroot, 'toolbox', 'matlab', '*.mat'))
a =
66x1 struct array with fields:
name
date
bytes
isdir
datenum
>> a(1)
ans =
name: '/Applications/MATLAB74/toolbox/matlab/audiovideo/chirp.mat'
date: '14-Mar-2004 10:31:48'
bytes: 25276
isdir: 0
datenum: 7.3202e+05 |
| MATLAB release |
MATLAB 7.1.0 (R14SP3)
|
| Other requirements |
Uses anonymous functions, so requires a recent version of Matlab |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 17 Oct 2008 |
Fixed small typo in description |
|
Contact us at files@mathworks.com