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.isAddonEnabled

Determine if add-on is enabled

Syntax

isenabled = matlab.addons.isAddonEnabled(identifier)

Description

example

isenabled = matlab.addons.isAddonEnabled(identifier) returns a value of true if the specified add-on is enabled. Otherwise, matlab.addons.isAddonEnabled returns a value of false

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 disable 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 enabled. MATLAB® confirms that the add-on is enabled.

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

  logical

   1

Disable the Random File Name Creator add-on and confirm that it is disabled.

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

  logical

   0

Input Arguments

collapse all

Unique identifier of the add-on, 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?