Documentation

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('myfiles/results')

MATLAB® returns

tf =
	1

indicating that myfiles/results is a folder.

See Also

|

Introduced before R2006a

Was this topic helpful?