Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

matlab.addons.enableAddon

Enable installed add-on

Syntax

matlab.addons.enableAddon(identifier)

Description

example

matlab.addons.enableAddon(identifier) enables the specified installed add-on. You can disable and enable most add-ons from the MATLAB® user community. Disabling and enabling MathWorks® products is not supported.

Examples

collapse all

Suppose 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×3 table

                  Name                    Version                   Identifier              
    _________________________________    _________    ______________________________________

    "Random File Name Creator"           "1.0"        "75442144-f751-4011-bm0e-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(addons.Identifier(1))
ans =

  logical

   0

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

matlab.addons.enableAddon(addons.Identifier(1))
matlab.addons.isAddonEnabled(addons.Identifier(1))
ans =

  logical

   1

Input Arguments

collapse all

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.

Data Types: char | string

Introduced in R2017b

Was this topic helpful?