Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Commonly Used Startup Options

The following 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 (Mac), or matlab (Linux).

Platform

Option

Description

All

-c licensefile

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

All

-h or -help

Display startup options (without starting MATLAB®).

All

-logfile "logfilename"

Automatically write output from MATLAB to the specified log file.

Windows® platforms

-minimize

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

Mac and Linux® platforms

-nojvm

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.

All

-nosplash

Start MATLAB without displaying its splash screen.

All

-r "statement"

Automatically run the specified statement immediately after MATLAB starts. This is sometimes referred to as calling MATLAB in batch mode. Files you run must be in the startup folder for MATLAB or on the search path. Do not include path names or file extensions. Enclose the statement in double quotation marks ("statement"). To separate multiple statements, use semicolons or commas.

All

-singleCompThread

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

See Also

| |

Was this topic helpful?