matlab.addons.toolbox.ToolboxOptions
Description
Use ToolboxOptions
to specify custom options when packaging a
toolbox. After you create a ToolboxOptions
object, use the
matlab.addons.toolbox.packageToolbox
function to package the
toolbox.
Creation
Syntax
Description
creates a opts
= matlab.addons.toolbox.ToolboxOptions(toolboxFolder
,identifier
)ToolboxOptions
object using the files in the specified toolbox
folder and the specified unique identifier.
If the toolbox folder contains a package definition file,
matlab.addons.toolbox.ToolboxOptions
uses information from the
package such as the description, summary, and toolbox name to set properties of the
ToolboxOptions
object. For more information about packages, see Create and Manage Packages.
sets properties using
one or more name-value arguments. For example,
opts
= matlab.addons.toolbox.ToolboxOptions(toolboxFolder
,identifier
,Name=Value
)matlab.addons.toolbox.ToolboxOptions(toolboxFolder,identifier,MaximumMatlabRelease="R2023a")
sets the latest MATLAB® release with which the toolbox is compatible to R2023a.
When setting name-value arguments for a toolbox containing a package definition file,
matlab.addons.toolbox.ToolboxOptions
uses the values of the
specified name-value arguments instead of the information from the package to set
properties.
creates a opts
= matlab.addons.toolbox.ToolboxOptions(projectFile
)ToolboxOptions
object using the information in the specified
toolbox project file.
Input Arguments
Properties
Object Functions
matlab.addons.toolbox.packageToolbox | Package toolbox project |
Examples
Version History
Introduced in R2023a