| MATLAB® | ![]() |
ls
As an alternative to the ls function, you can use the Current Directory browser to view directory contents.
ls lists the contents of the current directory. On UNIX[1] platforms, ls returns a character row vector of file names separated by tab and space characters. On Microsoft Windows platforms, ls returns an m-by-n character array of file names, where m is the number of file names and n is the number of characters in the longest file name found. File names shorter than n characters are padded with space characters.
On UNIX platforms, you can pass any flags to ls that your operating system supports.
Managing Files and Working with the Current Directory
[1] UNIX is a registered trademark of The Open Group in the United States and other countries.
![]() | lower | lscov | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |