mpmcreate
Description
creates a package named pkg
= mpmcreate(name
,location
)name
from the folder specified by
location
and returns a matlab.mpm.Package
object. A package is a collection of MATLAB® code, related files, and a package definition file that defines the package
identity and dependencies.
When you create a package using mpmcreate
, the package is
installed in place. In other words, the installed package files and
folders are located in the folder specified by location
, not in the
default installation area.
specifies options using one or more name-value arguments. For example, you can specify a
package version, identifier, and description.pkg
= mpmcreate(name
,location
,Name=Value
)
Examples
Input Arguments
Tips
To undo the results of
mpmcreate
, follow these steps:Uninstall the package using
mpmuninstall
.Delete the file
mpackage.json
from theresources
folder in the root folder of the package. If aresources
folder did not previously exist, then delete that folder as well.Delete the folder specified by
location
if it did not previously exist.
If
mpmcreate
creates a package that would cause an error if installed, then a warning is issued.
Version History
Introduced in R2024b