matlab.addons.toolbox.packageToolbox
R2026bBuild package from project file
Syntax
Description
matlab.addons.toolbox.packageToolbox(
packages the project file (projectFile).prj file) into a MATLAB® package file (.mltbx file). The name of the
resulting MATLAB package file is the name of the package appended with the
.mltbx extension. For example,
packagename.mltbx.
For you to build a package, the package root folder and the package files must be in the same location as when you created the project file.
matlab.addons.toolbox.packageToolbox(
builds the package and saves the projectFile,outputFile).mltbx file with the name and
location specified by outputFile.
Examples
Input Arguments
Alternatives
You can build packages from the Build Package UI. For more information, see Interactively Create and Share Packages.