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.
DIR命令解析
本文介绍了MATLAB中DIR命令的使用方法及返回结构。DIR可用于列出指定目录下的文件列表,并支持路径名和通配符。通过DIR命令,用户可以获取文件名、修改日期、文件大小等信息。
3万+

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



