Main Content

matlab.addons.enableAddon

R2026b

(Not recommended) Enable installed add-on

matlab.addons.enableAddon is not recommended. (since R2026b) For information, see Version History.

Description

matlab.addons.enableAddon(name) enables the add-on with the specified name. If multiple versions of an add-on are installed, you must specify a version. If matlab.addons.enableAddon is unable to find the specified add-on, it displays an error.

You can disable and enable most add-ons from the MATLAB® user community. Disabling and enabling MathWorks® products and support packages is not supported.

example

matlab.addons.enableAddon(identifier) enables the add-on with the specified identifier.

matlab.addons.enableAddon(___,version) also specifies the version of the add-on to enable. Use this syntax with any of the arguments in previous syntaxes.

Examples

collapse all

Suppose that you have an add-on called Random File Name Creator installed on your system. Get the list of installed add-ons and enable the Random File Name Creator add-on.

Get the list of installed add-ons.

addons = matlab.addons.installedAddons
 addons =

  1×4 table

             Name                   Version     Enabled                  Identifier              
    ___________________________    _________    _______    ______________________________________

    "Random File Name Creator"     "1.0"         false      "75442144-f751-4011-bf0e-32b6fb2f1433"

Check to see whether the Random File Name Creator add-on is disabled. MATLAB confirms that the add-on is disabled.

matlab.addons.isAddonEnabled("Random File Name Creator")
ans =

  logical

   0

Enable the Random File Name Creator add-on and confirm that it is enabled.

matlab.addons.enableAddon("Random File Name Creator")
matlab.addons.isAddonEnabled("Random File Name Creator")
ans =

  logical

   1

Input Arguments

collapse all

Name of the add-on that you want to enable, specified as a character vector or string. To determine the name of an add-on, use the matlab.addons.installedAddons function.

Unique identifier of the add-on that you want to enable, specified as a character vector or string. To determine the unique identifier of an add-on, use the matlab.addons.installedAddons function.

Version of the add-on that you want to disable, specified as a character vector or string. To determine the version of an add-on, use the matlab.addons.installedAddons function.

Version History

Introduced in R2017b

collapse all