SUBDIR *new*
by Elmar Tarajan
15 Mar 2002
(Updated 07 Dec 2004)
Recursively search for files and/or directorys under given folder without using of global variables.
|
Watch this File
|
| File Information |
| Description |
SUBDIR
returns all subfolder under current path.
P = SUBDIR('directory_name')
stores all subfolders under given directory into a variable 'P'
[P F] = SUBDIR('directory_name')
stores all subfolders under given directory into a
variable 'P' and all filenames into a variable 'F'.
use sort([F{:}]) to get sorted list of all filenames. |
| Acknowledgements |
This submission has inspired the following:
RPCODE
|
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (3) |
| 28 Feb 2007 |
martin demel
|
|
|
| 26 Mar 2008 |
Durga Shrestha
|
|
|
| 16 Jul 2009 |
Yanfei
|
|
|
| Updates |
| 07 Dec 2004 |
the output of results in the new version is more user friendly. |
|
Contact us at files@mathworks.com