Start MATLAB program from Windows system prompt
matlab
starts the MATLAB® program from the Microsoft®
Windows® system prompt. In this topic the term matlab
refers to the command you type, and MATLAB refers to the program.
The matlab
command:
Determines the MATLAB root folder, the value
returned by the matlabroot
function.
Processes command-line options and passes other options to MATLAB.
To capture the exit code, start MATLAB with the -wait
option.
matlab
starts MATLAB with the specified startup options.option1 ... optionN
To add folders to the MATLAB search path at startup, set the MATLABPATH
environment variable before running the matlab
command. For
more information, see Add Folders to the MATLAB Search Path at Startup.