| Embedded IDE Link™ MU | ![]() |
dir(id)
d=dir(id)
dir(id) lists the files and directories in the IDE working directory, where id is the object that references the IDE. id can be either a single handle, or a vector of handles. When id is a vector, dir returns the files and directories for each handle.
d=dir(id) returns the list of files and directories as an M-by-1 structure in d with the following fields for each file and directory, as shown in the following table.
| Field Name | Description |
|---|---|
| name | Name of the file or directory. |
| date | Date of most recent file or directory modification. |
| bytes | Size of the file in bytes. Directories return 0 for the number of bytes. |
| isdirectory | 0 if this is a file, 1 if this is a directory. |
To view the entries in d, use an index in the command at the MATLAB® prompt, as shown by the following examples.
d(3) returns the third element in the structure.
d(10) returns the tenth element in the structure d.
d(4).date returns the date field value for the fourth structure element.
![]() | delete | display | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |