- 积分
- 149
- 注册时间
- 2003-5-22
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2013-11-8 04:49:45
|
显示全部楼层
来自 英国
应该只是名字听起来像吧,实际功能不像,比如,在matlab里,dir函数返回一个结构对象,你可以用isdir等成员函数判断返回的结果中是否有子目录。这是matlab R2013b中“help dir”显示的内容:
- >> help dir
- dir List directory.
- dir directory_name lists the files in a directory. Pathnames and
- wildcards may be used. For example, dir *.m lists all program 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
- eclipseide/dir
- ccsdebug/dir
- Reference page in Help browser
- doc dir
复制代码 |
|