getDirectoryContents
Version 1.1.0.0 (1.73 KB) by
Konstantinos Drossos
Function used to retrieve the contents of a directory based on their extension or kind (e.g. folder)
This function can be considered as an extension to the builtin function dir. It can return only files that are of a specified format, only directories in a directory and also omits the "." and ".." entries from the dir output.
Cite As
Konstantinos Drossos (2024). getDirectoryContents (https://www.mathworks.com/matlabcentral/fileexchange/43704-getdirectorycontents), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on File Operations in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.