Start MATLAB program from Windows system prompt
matlab option1 ... optionN
matlab starts the MATLAB® program from
the Microsoft® Windows® system prompt. Here the term
to the command you type, and MATLAB refers to the program).
Determines the MATLAB root folder, the value
returned by the
Determines the host machine architecture, 32-bit or 64-bit.
Processes command-line options and passes other options to MATLAB.
matlab starts MATLAB with
the specified startup options.
option1 ... optionN
One or more startup options, specified as strings corresponding to valid startup options from the following tables.
Disable the display of figure windows in MATLAB.
Do not display the splash screen during startup.
Execute the MATLAB
Run 32-bit MATLAB on 64-bit processors.
Copy Command Window output, including error log reports,
Enable use of the Java® debugger. The Java debugger
uses the default
The port number is optional.
However, to use the Java debugger while running multiple MATLAB sessions,
you must provide a port number. The
By default, MATLAB uses the multithreading capabilities of the computer on which it is running.
Limit MATLAB to a single computational thread.
Disable use of
These options control the use of software OpenGL® libraries when MATLAB detects a graphics driver with known issues. For more information, see Graphics Features with OpenGL Requirements.
Force MATLAB to start with software OpenGL libraries.
Disable auto-selection of OpenGL software.
Start MATLAB as a Component Object Model (COM) Automation server. MATLAB does not display the splash screen and minimizes the window. Use for a single call to MATLAB.
Register MATLAB as a COM Automation server in the Windows registry. MATLAB displays a minimized command window; close this window.
You must have administrator privileges to change the Windows registry. Based on your User Account Control (UAC) settings, you might need to right-click a Windows Command Processor and select Run as administrator. If that option is not available, contact your system administrator.
MATLAB remains registered
until you use the
Alternatively, you can register MATLAB from the MATLAB command prompt. Type:
MATLAB displays a minimized command window. To continue working with MATLAB, Open this window and exit MATLAB.
Remove MATLAB COM server entries from the registry.
By default, when you call the
from a script, the command starts MATLAB and then immediately
executes the next statements in the script. The
pauses the script until MATLAB terminates.
Use in a startup script to process the results from MATLAB. Calling MATLAB with this option blocks the script from continuing until the results are generated.
For 32-bit Windows platforms only.
Shield options provide the specified level of protection of
the address space used by MATLAB during startup. These options
attempt to provide the largest contiguous block of memory available
after startup, which is useful for processing large data sets. These
options load resources, such as DLLs, into locations without fragmenting
the address space. For shield option values other than
address space is protected up to or after the processing of
Use higher levels of protection to secure larger initial blocks of
contiguous memory. However, a higher level might not always provide
a larger size block and might cause startup problems. Therefore, start
with a lower level of protection, and if successful, try the next
higher level. Use the MATLAB
after startup to see the size of the largest contiguous block of memory.
This function helps you determine the actual effect of the setting
you used. If your
requires significant memory, a higher level of protection might cause
startup to fail. In that event try a lower level.
Enter one of the options shown in the following table.
Default setting. Protect the range
Start with this option. If MATLAB fails
to start successfully, use the
If MATLAB starts successfully and you want
to try to ensure an even larger contiguous block after startup, try
Protect the same range as
If MATLAB fails
to start successfully with this option, use
If MATLAB starts
successfully and you want to try to ensure an even larger contiguous
block after startup, try using the
Protect the maximum range, which can be up to approximately
1.5 GB, until startup processes
If MATLAB fails
to start successfully, use the
Disable address shielding. Use this option if MATLAB fails
to start successfully with the
For more information, see Understanding License Files in License Management.
Use the License File,
Display startup options without starting MATLAB.
matlab -logfile output.log