| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
ls
As an alternative to the ls function, use the Current Folder browser.
ls lists the contents of the current folder. On UNIX[1] platforms, ls returns a character row vector of names separated by tab and space characters. On Microsoft Windows platforms, ls returns an m-by-n character array of names. m is the number of names and n is the number of characters in the longest name found. Names shorter than n characters are padded with space characters.
On UNIX platforms, you add any flags to ls that the operating system supports.
Working with Files and Folders
[1] UNIX is a registered trademark of The Open Group in the United States and other countries.

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