| Products & Services | Solutions | 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.
Topics in User Guide:
[1] UNIX is a registered trademark of The Open Group in the United States and other countries.
![]() | lower | lscov | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |