One or more startup options, specified as strings corresponding to valid startup options from the following tables.
Display Options
Option | Result |
---|---|
-noFigureWindows | Disable the display of figure windows in MATLAB. |
-nosplash | Do not display the splash screen during startup. |
Set Initial Working Folder
The initial working folder is the current folder when MATLAB starts.For more information, see MATLAB Startup Folder.
Option | Result |
---|---|
| Set the MATLAB folder to Example: |
| Set the MATLAB folder to the value specified by the Initial working folder preference, located in the General Preferences page of the Preferences. |
Debugging Options
Option | Result |
---|---|
| Copy Command Window output, including error log reports, in to Example: |
| 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 |
Execute MATLAB Script or Function
Option | Result |
---|---|
| Execute MATLAB script, statement, or function non-interactively. MATLAB:
Use the To test if a session of MATLAB is running in batch mode, call the batchStartupOptionUsed function. Example: |
| Execute the MATLAB Note To set the initial working folder, use the
Example: Example: |
Use Single Computational Thread
By default, MATLAB uses the multithreading capabilities of the computer on which it is running.
Option | Result |
---|---|
-singleCompThread | Limit MATLAB to a single computational thread. This option is for numerical computations only. |
Disable Searching Custom Java Class Path
Option | Result |
---|---|
-nouserjavapath | Disable use of |
OpenGL Library Options
These options control the use of software OpenGL® libraries when MATLAB detects a graphics driver with known issues. For more information, see Graphics Features That Have Specific Requirements.
In a future release, these options will be removed. For more information, see Version History.
Option | Result |
---|---|
-softwareopengl | Force MATLAB to start with software OpenGL libraries. |
-nosoftwareopengl | Disable auto-selection of OpenGL software. |
COM Server Options
Option | Result |
---|---|
| 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 server in the Windows registry. 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 Prompt and select Run as administrator. If that option is not available, contact your system administrator. Alternatively, you can register MATLAB from the MATLAB command prompt. Type: regmatlabserver For more information, see Register MATLAB as COM Server and regmatlabserver. |
| Remove MATLAB COM server entries from the registry. |
Wait for MATLAB to Terminate
By default, when you call the matlab
command from a script, the command starts MATLAB and then immediately executes the next statements in the script. The -wait
option pauses the script until MATLAB terminates.
Option | Result |
---|---|
| Use in a script to process the results from MATLAB. Calling MATLAB with this option blocks the script from continuing until the results are generated. |
Specify License File
For more information, see Update or Modify Network License Files.
Option | Result |
---|---|
| Use the License File, Example: |
Help Options
Option | Result |
---|---|
-h | Display options without starting MATLAB. |
-help | Same as |
-? | Same as |