Directory to Cell

版本 1.1.0.0 (1.7 KB) 作者: Kevin Crosby
Converts directory listing into a cell array.
815.0 次下载
更新时间 2010/8/10

查看许可证

NAMES = DIR2CELL converts the directory listing into a cell array in alphabetical order.

NAMES = DIR2CELL(ARG) converts the directory listing based on argument ARG, into a cell array in alphabetical order. ARG may contain wildcards.

[NAMES, DATENUMS, DATES, BYTES, ISDIRS] = DIR2CELL(ARG), also returns the modification date as a MATLAB serial date number in double array DATENUMS, the modification date in cell array DATES, the number of bytes in double array BYTES, and a Boolean variable designating if is a directory or not in logical array ISDIRS.

Example:
files = dir2cell('*.m')

引用格式

Kevin Crosby (2024). Directory to Cell (https://www.mathworks.com/matlabcentral/fileexchange/28442-directory-to-cell), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Implemented Jan Simon's suggestions to eliminate CELL2MAT.

1.0.0.0