image thumbnail


version (669 Bytes) by Paul Macey
Lists all subdirectories in the current or a given directory.


Updated 04 Apr 2002

No License

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

Cite As

Paul Macey (2022). dirdir (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: subdir

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!