This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Commonly Used Startup Options

This table lists commonly used startup options for the matlab command. For a complete list of options, refer to the input arguments for matlab (Windows), matlab (macOS), or matlab (Linux).





-c licensefile

Set LM_LICENSE_FILE to licensefile. It can have the form port@host.


-h or -help

Display startup options (without starting MATLAB®).


-logfile "logfilename"

Automatically write output from MATLAB to the specified log file.

Windows® platforms


Start MATLAB with the desktop minimized. Any desktop tools or documents that were undocked when MATLAB was last closed are not minimized at startup.

macOS and Linux® platforms


Start MATLAB without loading the JVM™ software. This minimizes memory usage and improves initial startup speed, but restricts functionality. With nojvm, you cannot use the desktop, figures, or any tools that require Java® software.

For example, you cannot set preferences if you start MATLAB with the -nojvm option. However, you can start MATLAB once without the -nojvm option, set the preference, and quit MATLAB. MATLAB remembers that preference when you start it again, even if you use the -nojvm option.



Start MATLAB without displaying its splash screen.


-batch "statement"

Run the specified statement non-interactively.


-r "statement"

Run the specified statement interactively.



Limit MATLAB to a single computational thread. By default, Windows uses the multithreading capabilities of the computer on which it is running.

For a complete list of options, refer to the input arguments for matlab (Windows), matlab (macOS), or matlab (Linux).

See Also

| |