Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

ls - Folder contents

Syntax

ls

Graphical Interface

As an alternative to the ls function, use the Current Folder browser.

Description

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.

See Also

dir, pwd

Working with Files and Folders


[1] UNIX is a registered trademark of The Open Group in the United States and other countries.

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS