After you have added artifacts for your blocks in a Blockset Designer project, you can publish and share your project as a toolbox. To publish:
Click the blockset from the blockset tree, and click Publish Toolbox from the Simulink® toolstrip.
The Blockset Designer collects your files in the project, and creates the publish folder in Views > Files. This folder contains all your files from the separate folders in the blockset project based on the dependency analysis, but now collected together under one folder. See What Is Dependency Analysis? to learn more about dependency analysis. The publish folder contains these folders and the associated content:
For all blocks:
All library models in the blockset all files under <projectroot>/common/library. This includes library models of sublibraries, as well as the blockset project library model.
|mex||All S-function mex files|
|sysobj||All System object™ code for the MATLAB System blocks in the blockset project|
If you have any other files that you would like to include in the publish, manually copy them to the publish folder.
Since the publish folder is added to project path by default, to avoid shadowing files in project, remove this folder from the project path or delete it after the publish process. If you make any changes to your blockset after publishing, click Publish again the move the updates files to the publish folder.
The Toolbox Information fields are populated with the project name, author, and description. Edit the information if needed.
To ensure that MATLAB® detects installation components, review the toolbox contents from Toolbox Files and Folders. If you want to include files not already included in the project files, edit the Exclude files and folders.
Click Package from the toolstrip to package your toolstrip.
To save your toolbox and share it on the MATLAB Central File
Exchange, select Package and Share from the
Package menu at the top of the Package a Toolbox
dialog box. This option generates a
.mltbx file in your current
MATLAB folder and opens a web page for your toolbox submission to the File Exchange.
MATLAB populates the File Exchange submission form with information about the toolbox.
Review and submit the form to share your toolbox on File Exchange.
To share your toolbox with others, use the
.mltbx file. All files
you added when you packaged the toolbox are included in the
file. When your toolbox is installed,
.mltbx file manages the MATLAB
path or other installation details.
To learn more about how to create and share toolboxes, and to see the details of the packaging user interface, see Create and Share Toolboxes.