dir - List folder contents
Syntax
dir
dir name
listing = dir(name)
Description
dir lists the files andfolders in the MATLAB current folder. Results appear in the orderreturned by the operating system.
dir name lists the files and folders thatmatch the string name. When name is a folder, dir liststhe contents of the folder. Specify name usingabsolute or relative path names. You can use wildcards (*).
listing = dir(name) returnsattributes about name.
Input Arguments
name | A string value specifying a file or folder name. |