MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Create and Share Toolboxes


In this section...
“Create Toolbox” on page 25-13
“Share Toolbox” on page 25-21

You can package MATLAB files to create a toolbox to share with others. These files can
include MATLAB code, data, apps, examples, and documentation. When you create a
toolbox, MATLAB generates a single installation file (.mltbx) that enables you or others
to install your toolbox.

Create Toolbox


To create a toolbox installation file:

1
In the Environment section of the Home tab, select Package Toolbox from the
Add-Ons menu.
2
In the Package a Toolbox dialog box, click the button and select your toolbox
folder. It is good practice to create the toolbox package from the folder level above
your toolbox folder. The .mltbx toolbox file contains information about the path
settings for your toolbox files and folders. By default, any of the included folders and
files that are on your path when you create the toolbox appear on their paths after
the end users install the toolbox.

(^3) In the dialog box, add the following information about your toolbox.
Toolbox
Informatio
n Field
Description
Toolbox
Name
Enter the toolbox name, if necessary. By default, the toolbox name
is the name of the toolbox folder. The Toolbox Name becomes
the .mltbx file name.
Version Enter the toolbox version number in the Major.Minor.Bug.Build
format. Bug and Build are optional.
Create and Share Toolboxes

Free download pdf