FUNCTION REFERENCE
mkdir
Create a directory and any missing parents.
Create a directory and any missing parents.
Syntax
status = mkdir(folder)Syntax
[status, message, id] = mkdir(parent, child)Returns logical success. An existing directory succeeds with message Directory already exists. Without outputs, failures raise errors and an existing directory emits a warning.
Example
d=tempname(pwd); ok=mkdir(d); rmdir(d); ok % 1Differences from MATLAB: Network paths are not supported. Host operating-system failure messages can differ.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.