Commonly Used Startup Options - MATLAB & Simulink (original) (raw)

Main Content

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).

Option Description
-c license License to use, specified as the full path to a license file, a list of license file paths, or the port@host address of a license server. Separate multiple paths with a semicolon (Windows®) or colon (Linux®, macOS).Licenses specified in the-c option override all other licenses, including ones set in environment variables or stored in other folders. For more details, see MATLAB License Search Path.
-h or -help Display startup options (without starting MATLAB®).
-logfile "logfilename" Automatically write output from MATLAB to the specified log file.
-nojvm Start MATLAB without allowing the JVM® software to be loaded in the session. Features that require Java® software are not supported.Before R2025a: Desktop tools and graphics not supported when MATLAB is started using the -nojvm startup option. In addition, -nojvm is not supported on Windows systems.
-batch "statement" Run the specified statement non-interactively.
-r "statement" Run the specified statement interactively.
-singleCompThread Limit MATLAB to a single computational thread. This option is for numerical computations only.On Windows systems, this option uses the multithreading capabilities of the computer on which it is running by default.

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

See Also

matlab (Windows) | matlab (macOS) | matlab (Linux)