Organize and Distribute Code Using MATLAB Package Manager - MATLAB & Simulink

submited by
Style Pass
2024-09-30 20:00:07

The MATLAB® Package Manager is a set of objects and functions for creating, finding, installing, and managing MATLAB packages. After creating a package, you can distribute it to your end users by adding it to a package repository.

If you instead want to install MATLAB, Simulink®, and other MathWorks® products or support packages, see Install Programmatically Using MATLAB Package Manager.

A package is a collection of MATLAB code, related files, and a package definition file that defines the package identity and dependencies. The purpose of a package is to compartmentalize code so that it can be shared while maintaining its intended functionality. When installing a package, the MATLAB Package Manager installs all of the code, supporting files, and any other packages that it depends on and adds them to the path. For information on finding and installing packages, see Find and Install Packages.

A package consists of a root folder, which contains the files and member folders of the package. When installing a package, the MATLAB Package Manager adds the root folder and all member folders to the path. The root folder contains a resources folder, which contains the package definition file named mpackage.json file.

Leave a Comment