Specify MATLAB current working folder after startup
= MLStartDir(path)
MLStartDir path
out = MLStartDir(path)
= MLStartDir(
sets
the MATLAB® working folder after startup. Use this syntax
when working directly in a worksheet.path
)
MLStartDir
sets
the MATLAB working folder after startup. Use this syntax
in a VBA macro.path
lets
you catch errors when executing out
= MLStartDir(path
)MLStartDir
in a
VBA macro. If MLStartDir
fails, then out
is
a string containing error code. Otherwise, out
is 0
.
|
Path to the new MATLAB working folder after startup. |
|
Execution status that contains |
This function does not work like the standard Microsoft® Windows® Start
In setting, because it does not automatically run startup.m
or matlabrc.m
in
the specified folder.
The working folder changes only if you run MATLAB after you run this function. Running this function while MATLAB is running does not change the working folder for the current session. In this case, MATLAB uses the specified folder as the working folder when it is restarted.