dir
Retrieve the files in the specified directory
Syntax
y = dir ( s )
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
s | STR | File name with or without a wild card, or directory | n/a |
Outputs / Return Value
y:yis a cell array showing the directory contents. Each cell is a directory class with the following members: name, ext, path, isdir, date, and bytes.
Examples
y = dir ("c:\Temp\auxlab\1.42\") or
y = dir ("c:\Temp\auxlab\1.42\*.ini")
y{1} =
.bytes = 1341
.date = "06/18/2018, 04:18:28"
.ext = ".ini"
.isdir = (logical) 0
.name = "auxcon32.AUDITORY"
.path = "C:\Temp\auxlab\1.42\"
y{2} =
.bytes = 160
.date = "06/18/2018, 04:22:06"
.ext = ".ini"
.isdir = (logical) 0
.name = "auxlab32.AUDITORY"
.path = "C:\Temp\auxlab\1.42\"
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.