This repo provides a suite of basic functions to help create, develop, and manage MATLAB Add-Ons (i.e., toolboxes).
This repo was inspired by the following two MathWorks Blog posts:
Best Practices - Adapt, then Adopt!
As well as this FileExchange submission:
This code relies on the notion of "sandbox" and some conventions:
- The sandbox is primarily defined by the PRJ file.
- The sandbox configuration is supplemented by the "fcam.json" file.
- The sandbox will package the "code" folder.
- A single folder will be added to the MATLAB path, "code/
shortname
".
mksandbox
Create a new sandbox.addsandbox
Add the sandbox to the MATLAB path.rmsandbox
Remove the sandbox from the MATLAB path.testsandbox
Run the tests of the sandbox.testaddon
Run the tests on the packaged Add-On.packagesandbox
Package the sandbox into an MLTBX.