Documentation

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 oftrueif the specified add-on is enabled. Otherwise,matlab.addons.isAddonEnabledreturns a value offalse

Examples

collapse all

Suppose you have an add-on calledRandom File Name Creatorinstalled on your system. Get the list of installed add-ons and disable theRandom File Name Creatoradd-on.

Get the list of installed add-ons.

插件= 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 theRandom File Name Creatoradd-on is enabled. MATLAB®confirms that the add-on is enabled.

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

Disable theRandom File Name Creatoradd-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 thematlab.addons.installedAddonsfunction.

Data Types:char|string

Introduced in R2017b

Was this topic helpful?