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