Documentation

myDeployedModule.initialize_runtime

Initialize MATLAB Runtime with a list of startup options

Description

myobj = myDeployedModule.initialize_runtime() initializes the MATLAB® Runtime with a list of startup options that affects all packages opened within the script.

If it is not called explicitly, it is executed automatically, with an empty list of options, by the first call to initialize(). Do not call initialize_runtime() after calling initialize(). There is no corresponding terminate_runtime() call. The MATLAB Runtime terminates automatically when the script or session ends.

Input Arguments

collapse all

The MATLAB Runtime has two startup options that you can specify:

  • -nojvm — Disable the Java® Virtual Machine, which is enabled by default. This option can help improve the MATLAB Runtime performance.

  • -nodisplay — On Linux®, run the MATLAB Runtime without display functionality.

Output Arguments

collapse all

Output a handle to deployed MATLAB functions, returned as a Python object used to execute deployed MATLAB functions.

Examples

collapse all

This example shows how to specify MATLAB Runtime options when creating a handle to a package named myDeployedModule.

import myDeployedModule

myobj = myDeployedModule.initialize_runtime(['-nojvm', '-nodisplay'])

print(myobj.makesqr(3))

myobj.terminate()