Main Content

matlab.addons.toolbox.installToolbox

R2026b

(Not recommended) Install toolbox file

matlab.addons.toolbox.installToolbox is not recommended. Use mpminstall instead. (since R2026b) For information on updating your code, see Version History.

Description

info = matlab.addons.toolbox.installToolbox(toolboxFile) installs the toolbox file (.mltbx file) specified by toolboxFile and returns information about the toolbox.

MATLAB® installs the toolbox in the default add-on installation folder. For more information, see Default Add-On Installation Folder.

example

Examples

collapse all

Assume that you have the myToolbox.mltbx toolbox file in your current working folder. Install the toolbox.

toolboxFile = 'MyToolbox.mltbx';
info = matlab.addons.toolbox.installToolbox(toolboxFile)
info = 

       Name: 'myToolbox'
    Version: '2.0'
       Guid: 'd0169b4a-fe74-463f-981a-26160c94cbe5'

Input Arguments

collapse all

Name of the toolbox file (.mltbx file), specified as a character vector or string scalar. The name includes the relative or absolute path to the file.

Example: toolboxFile = 'myToolbox.mltbx'

Example: toolboxFile = "C:\Work\myOtherToolbox.mltbx"

Output Arguments

collapse all

Information about the installed toolbox, returned as a structure. The structure has the following fields.

FieldDescription
NameName of the toolbox
VersionToolbox version
GuidUnique toolbox identifier

Alternatives

You can install toolboxes from the Add-On Explorer UI. For more information, see Get and Manage Add-Ons.

Version History

Introduced in R2016a

expand all