DIR List directory.
DIR directory_name lists the files in a directory. Pathnames and
wildcards may be used. For example, DIR *.m lists all the M-files
in the current directory.
D = DIR('directory_name') returns the results in an M-by-1
structure with the fields:
name -- Filename
date -- Modification date
bytes -- Number of bytes allocated to the file
isdir -- 1 if name is a directory and 0 if not
datenum -- Modification date as a MATLAB serial date number.
This value is locale-dependent.
See also what, cd, type, delete, ls, rmdir, mkdir, datenum.
Overloaded methods:
ftp/dir
本文详细介绍了MATLAB中DIR命令的功能及用法。DIR用于列出指定目录下的文件信息,支持路径名称和通配符。此外,还提供了如何使用DIR命令返回结构化数据的方法,包括文件名、修改日期等字段。
1万+

被折叠的 条评论
为什么被折叠?



