Main Content

Share and Distribute Software

Create toolboxes; manage packages and dependencies on other libraries

The simplest way to share software that you have developed in MATLAB is to create a toolbox. For details, see Create and Share Toolboxes.

In contrast, packages provide more control over dependencies and support scripted installation, but they require that you create your own disk- or network-based repository. For an overview of the process, see Find and Distribute Code Using MATLAB Package Manager.

End users can install software from either toolboxes or packages using the Add-On Manager. For details, see Add-Ons.

Functions

expand all

matlab.addons.toolbox.packageToolboxPackage toolbox project
matlab.addons.toolbox.toolboxVersionQuery or modify version of toolbox
matlab.addons.toolbox.installToolboxInstall toolbox file
matlab.addons.toolbox.uninstallToolboxUninstall toolbox
matlab.addons.toolbox.installedToolboxesReturn information about installed toolboxes
matlab.addons.toolbox.ToolboxOptionsOptions for packaging toolbox project (Since R2023a)

Packages

mpmcreateCreate package (Since R2024b)
mpminstallInstall package (Since R2024b)
mpmuninstallUninstall package (Since R2024b)
mpmsearchSearch for packages in repositories (Since R2024b)
mpmlistList installed packages (Since R2024b)

Repositories

mpmAddRepositoryAdd repository to repository list (Since R2024b)
mpmListRepositoriesList known repositories (Since R2024a)
mpmRemoveRepositoryRemove repository from repository list (Since R2024b)

Package Development

addFolderAdd member folder to package (Since R2024b)
removeFolderRemove member folder from package (Since R2024b)
addDependencyAdd dependency to package (Since R2024b)
removeDependencyRemove dependency from package (Since R2024b)
updateDependencyUpdate dependency information (Since R2024b)
digestGenerate cryptographic hash for package (Since R2024b)
PackageIdentifierCreate package identifier (Since R2026a)

Package Manager

matlab.mpm.PackageMATLAB package (Since R2024b)
matlab.mpm.DependencyPackage dependency (Since R2024b)
matlab.mpm.PackageSpecifierSpecify package qualifiers (Since R2024b)
matlab.mpm.PackageIdentifierPackage Identifier (Since R2026a)
matlab.mpm.VersionPackage version (Since R2024b)
matlab.mpm.RepositoryPackage repository (Since R2024b)
matlab.mpm.ProviderPackage provider (Since R2024b)
matlab.mpm.PackageFolderPackage member folder (Since R2024b)
matlab.mpm.PackageFolderLanguagePackage folder language (Since R2025a)

Package Definition File

mpackage.jsonPackage definition file schema (Since R2024b)
matlab.codetools.requiredFilesAndProductsList dependencies of MATLAB program files

Topics