When you roll-out a COM component to end users, there are times when you need to specify MATLAB® Runtime options to create a log file or improve performance.
Pass these options with mcc
-nojvm — Launches the MATLAB Runtime without
a Java® Virtual Machine (JVM™). This can improve performance
of deployed applications, in some cases.
-logfile — Allows you to
specify a log file name.
You do this by invoking the following MWUtil API
calls:
Sub
MWInitApplicationWithMCROptions(pApp As Object, [mcrOptionList]) (MATLAB Compiler)
Function
IsMCRJVMEnabled() As Boolean (MATLAB Compiler)
Function
IsMCRInitialized() As Boolean (MATLAB Compiler)