| Contents | Index |
ls
ls name
list = ls(name)
ls lists the contents of the current folder.
ls name lists the files and folders in the current folder that match the specified name. You can use wildcards.
list = ls(name) returns the files and folders in the current folder that match the specified name to list.
On UNIX platforms, you can add any flags to ls that the operating system supports.
name |
A string value specifying a file or folder name. |
List all the files and folders in the current folder:
ls
List all the files and folders in the current folder that begin with the letter h:
ls h*
Return the list of all the files and folders in the current folder to mylist:
mylist = ls;
View files and folders in the Current Folder field in the MATLAB desktop toolbar.
View files and folders in the Current Folder browser.
Open the Current Folder browser by issuing the filebrowser command.

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |