Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

myDeployedModule.terminate

Close a package

Syntax

myDeployedModule.terminate()

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()
Was this topic helpful?