Main Content

myDeployedModule.terminate

Python module to close a package

Description

myDeployedModule.terminate() closes a package consisting of one or more deployed MATLAB® functions. myDeployedModule.terminate() can be called on a package handle, after which no functions can be called on the handle.

If you exit from a script or session, myDeployedModule.terminate() is called automatically. Hence, calling it explicitly is optional, but a good idea because it frees resources at that point. Alternatively, you can use quit() or exit().

Examples

collapse all

This example shows how to create a handle to a package named myDeployedModule, and close the handle after calling a deployed MATLAB function.

import myDeployedModule

myobj = myDeployedModule.initialize()

print(myobj.makesqr(3))

myobj.terminate()