FUNCTION REFERENCE

isfile

True for names that are existing local files.

True for names that are existing local files.

Syntax

tf = isfile(name)

Name is a character vector, string array or cell array of character vectors; the logical result has the size of a string or cell input. Relative names resolve against the engine current folder. Folders, missing or empty names give false.

Example

isfile(tempdir)   % 0

Differences from MATLAB: Network paths and URLs give false. The browser version has no files, so it always gives false.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.