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
Name-Value Arguments
Tips
To undo the results of
mpmcreate, follow these steps:Uninstall the package using
mpmuninstall.Delete the file
mpackage.jsonfrom theresourcesfolder in the root folder of the package. If aresourcesfolder did not previously exist, then delete that folder as well.Delete the folder specified by
locationif it did not previously exist.
If
mpmcreatecreates a package that would cause an error if installed, then a warning is issued.
Version History
Introduced in R2024b