Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

isdir - Determine whether input is folder

Syntax

tf = isdir('A')

Description

tf = isdir('A') returns logical 1 (true) if A is a folder. Otherwise, it returns logical 0 (false).

Examples

Run:

tf=isdir('mymfiles/results')

MATLAB returns

tf =
	1

indicating that mymfiles/results is a folder.

See Also

dir, is*

Managing Files in MATLAB

  


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