This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Close a package




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().


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()