No BSD License  

Highlights from
dirdir

4.66667

4.7 | 3 ratings Rate this file 8 Downloads (last 30 days) File Size: 1.12 KB File ID: #1570

dirdir

by Paul Macey

 

04 Apr 2002

Lists all subdirectories in the current or a given directory.

| Watch this File

File Information
Description

The function uses the MATLAB "dir" function to create a structure of sub-directories.

Acknowledgements
This submission has inspired the following:
subdir
MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
11 May 2005 Tim Myers

This is exactly what I needed. I'm glad I found it on the Matlab File Exchange. Nice job Paul.

18 Mar 2006 Erdinc Saygin

Very handy and simple to use. Thank you very much Paul!

28 Apr 2008 Rob Jenkin

This is good - but caution - if in the root directory of a disc '.' and '..' are not returned in dir, so you potentially lose a sub dir. I've added a test, D(i).name == '.' to test for this and adjust accordingly.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
path Paul Macey 22 Oct 2008 06:43:33
directories Paul Macey 22 Oct 2008 06:43:33
files Paul Macey 22 Oct 2008 06:43:33
directory Paul Macey 22 Oct 2008 06:43:33
subdirectory Paul Macey 22 Oct 2008 06:43:33
dir Paul Macey 22 Oct 2008 06:43:33
folder Paul Macey 22 Oct 2008 06:43:33
subfolder Paul Macey 22 Oct 2008 06:43:33

Contact us at files@mathworks.com