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