ls
- : ls ¶
- : ls
name …¶ - : ls
options name …¶ - :
list =ls(…)¶ List the contents of folders and the names of files.
Without a name the current folder is listed. Arguments that begin with a dash are options for the system command
ls. The other arguments are file names or folder names, and may contain the wildcards ‘*’, ‘?’ and ‘[…]’; a name that matches nothing is an error.With an output argument, list is a character matrix with one row for each line of the listing, padded with blanks on the right. Without it, the listing is printed.