| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB Compiler |
| Contents | Index |
| Learn more about MATLAB Compiler |
bool mclInitializeApplication(const char **options, int count)
MATLAB Compiler-generated standalone executables contain auto-generated code to call this function; users of shared libraries must call this function manually. The function takes an array of strings (possibly of zero length) and a count containing the size of the string array. The string array may contain the following MATLAB command line switches, which have the same meaning as they do when used in MATLAB. :
-appendlogfile
-Automation
-beginfile
-debug
-defer
-display
-Embedding
-endfile
-fork
-java
-jdb
-logfile
-minimize
-MLAutomation
-noaccel
-nodisplay
-noFigureWindows
-nojit
-noshelldde
-nosplash
-r
-Regserver
-shelldde
-student
-Unregserver
-useJavaFigures
-mwvisual
-xrm
Caution mclInitializeApplication must be called once only per process. Calling mclInitializeApplication more than once may cause your application to exhibit unpredictable or undesirable behavior. |
Caution When running on Mac, if -nodisplay is used as one of the options included in mclInitializeApplication, then the call to mclInitializeApplication must occur before calling mclRunMain. |
To start all MCRs in a given process with the -nodisplay option, for example, use the following code:
char *args[] = { "-nodisplay" };
bool success = mclInitializeApplication(args, 1);
![]() | mclGetMCRUserData | mclIsJVMEnabled | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |