Development Environment | ![]() ![]() |
Adding Startup Options for Windows Platforms
You can add selected startup options (also called command flags) to the target path for your Windows shortcut for MATLAB, or include the option if you start MATLAB from a DOS window. To do so:
matlab.exe
, add one or more of the allowable startup options listed here.Option |
Description |
/automation |
Start MATLAB as an automation server, minimized and without the MATLAB splash screen. For more information, see Client/Server Applications in the Application Program Interface Guide. |
/logfile logfilename |
Automatically write output from MATLAB to the specified log file. |
/minimize |
Start MATLAB minimized and without the MATLAB splash screen. |
/nosplash |
Start MATLAB without displaying the MATLAB splash screen. |
/r M_file |
Automatically run the specified M-file immediately after MATLAB starts. This is also referred to as calling MATLAB in batch mode. |
/regserver |
Modify the Windows registry with the appropriate ActiveX entries for MATLAB. For more information, see Client/Server Applications in the Application Program Interface Guide. |
/unregserver |
Modify the Windows registry to remove the ActiveX entries for MATLAB. Use this option to reset the registry. For more information, see Client/Server Applications in the Application Program Interface Guide. |
Example - Setting the Startup Options to Automatically Run an M-File. To start MATLAB and automatically run the file results.m
, use this target path for your Windows shortcut.
D:\matlabr12\bin\win32\matlab.exe /r results
Startup Options If You Run MATLAB from a DOS Window. If you run MATLAB from a DOS window, include the startup options listed in the preceding table after the matlab
startup function.
For example, to start MATLAB and automatically run the file results.m
, type
matlab /r results
![]() | Startup Options | Adding Startup Options for UNIX Platforms | ![]() |