isfile

Returns true if the input argument is a file.

Syntax

isfile(dir)

Inputs

file
File or full file path.
Type: char
Dimension: string

Outputs

R
Numerical equivalent true/false.
Type: logical
Dimension: Boolean

Example

Simple isfile example.

R = isfile('c:\tests\MyFile.txt')
R = 1