Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

isfile

Returns true is the input argument is a file.

Syntax

  • r = isfile(name)

Input argument

  • name - a string: filename to check.

Output argument

  • r - a logical: true if it is a file.

Description

isfile(name) returns true if name is a file.

Example

isfile(nelsonroot())
isfile([nelsonroot(), '/etc/finish.m'])

See also

mkdir, isfolder.

History

VersionDescription
1.0.0initial version
1.4.0input arguments support scalar string array type

Author

Allan CORNET