File Exchange

image thumbnail

dirdir

version 1.0 (1.12 KB) by

Lists all subdirectories in the current or a given directory.

4.66667
3 Ratings

1 Download

Updated

No License

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

Comments and Ratings (3)

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.

Erdinc Saygin

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

Tim Myers

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

MATLAB Release
MATLAB 6.1 (R12.1)
Acknowledgements

Inspired: subdir

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video