Products & Services Solutions 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

Topics in User Guide:


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

  


Recommended Products

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