Main Content

matlab.addons.disableAddon

Disable installed add-on

Description

example

matlab.addons.disableAddon(name)禁用the installed add-on with the specified name. If multiple versions of an add-on are installed,matlab.addons.disableAddon禁用the currently enabled version.

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

matlab.addons.disableAddon(identifier)禁用the installed add-on with the specified identifier.

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

Examples

collapse all

Suppose that 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.

addons = matlab.addons.installedAddons
addons = 1×4 table Name Version Enabled Identifier ___________________________ _________ _______ ______________________________________ "Random File Name Creator" "1.0" true "75442144-f751-4011-bf0e-32b6fb2f1433"

DisableRandom File Name Creatorand confirm that it is disabled.

matlab.addons.disableAddon('Random File Name Creator') matlab.addons.isAddonEnabled('Random File Name Creator')
ans = logical 0

Input Arguments

collapse all

Name of the add-on that you want to disable, specified as a character vector or string. To determine the name of an add-on, use thematlab.addons.installedAddonsfunction.

Unique identifier of the add-on that you want to disable, specified as a character vector or string. To determine the unique identifier of an add-on, use thematlab.addons.installedAddonsfunction.

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 thematlab.addons.installedAddonsfunction.

Version History

Introduced in R2017b