Disable Installed Addons in MATLAB
Matlab Addons have commercial and no-cost toolboxes that can be installed into Matlab. When testing project code, it is often useful to disable an addon to ensure that the project code works as expected in diverse Matlab toolbox-enabled environments.
Check Matlab packages installed:
addons = matlab.addons.installedAddons;
disp(addons)
To disable an addon, you can use the matlab.addons.disable
function. Here is an example of how to disable a specific addon by its ID.
For example for “Parallel Computing Toolbox”:
matlab.addons.disable("Parallel Computing Toolbox")
Check logical status of the addon:
matlab.addons.isAddonEnabled("Parallel Computing Toolbox")