matlab.addons.disableAddon - Disable installed add-on - MATLAB (original) (raw)
Main Content
Syntax
Description
matlab.addons.disableAddon([name](#mw%5F152ab8b2-e1e9-4242-8c23-4841613c4d4d))
disables the installed add-on with the specified name. If multiple versions of an add-on are installed, matlab.addons.disableAddon
disables the currently enabled version. If matlab.addons.disableAddon
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.
matlab.addons.disableAddon([identifier](#d126e1039553))
disables the installed add-on with the specified identifier.
matlab.addons.disableAddon(___,[version](#mw%5F2341ee9d-2d59-4c9f-a59b-c5e9d67efad4))
also specifies the version of the add-on to disable. Use this syntax with any of the arguments in previous syntaxes.
Examples
Suppose that 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×4 table
Name Version Enabled Identifier
___________________________ _________ _______ ______________________________________
"Random File Name Creator" "1.0" true "75442144-f751-4011-bf0e-32b6fb2f1433"
Disable Random File Name Creator
and confirm that it is disabled.
matlab.addons.disableAddon('Random File Name Creator') matlab.addons.isAddonEnabled('Random File Name Creator')
Input Arguments
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.installedAddons
function.
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 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 thematlab.addons.installedAddons
function.
Version History
Introduced in R2017b