isdir - Determine whether input is a directory

Syntax

tf = isdir('A')

Description

tf = isdir('A') returns logical 1 (true) if A is a directory and logical 0 (false) otherwise.

Examples

Type

tf=isdir('mymfiles/results')

and the MATLAB® software returns

tf =
	1

indicating that mymfiles/results is a directory.

See Also

dir, is*

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS