image thumbnail

folderFiles.m

version 1.3.0.0 (1.89 KB) by Ahmed A. Selman
Reads filename contents of a folder.

856 Downloads

Updated 25 Mar 2013

View License

[outFiles]=folderFiles(inFolder,fileNames)
Reads a group of (fileNames) from a folder specified by (inFolder), and generates the output in the form of a char array.
fileNames is the criteria that specifies the files, e.g., *.jpg. If fileNames is left as a blank (default) this function reads all contents, but this is not preferred since some folders containing images will also have system files such as (Thumbs.db) or (folder.ini) beside subfolders.

Cite As

Ahmed A. Selman (2022). folderFiles.m (https://www.mathworks.com/matlabcentral/fileexchange/40877-folderfiles-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!