matlab.addons.uninstall
卸载附加功能
语法
说明
matlab.addons.uninstall(
卸载具有指定标识符的附加功能。identifier
)
示例
卸载工具箱
假设您的系统上安装了一个名为 Random File Name Creator
的工具箱。获取已安装的附加功能列表并卸载 Random File Name Creator
工具箱。
获取已安装的附加功能列表。
addons = matlab.addons.installedAddons
addons = 1×4 table Name Version Enabled Identifier ___________________________ _________ _______ ______________________________________ "Random File Name Creator" "1.0" true "75442144-f751-4011-bf0e-32b6fb2f1433"
卸载 Random File Name Creator
工具箱。
matlab.addons.uninstall('Random File Name Creator');
卸载工具箱的特定版本
假设您的系统上安装了名为 My Toolbox
的工具箱的版本 2.0
和版本 4.0
。使用版本 4.0
后,您认为不再需要版本 2.0
,决定将其卸载。
获取已安装的附加功能列表。
addons = matlab.addons.installedAddons
addons = 2×4 table Name Version Enabled Identifier ___________________________ _________ _______ ______________________________________ "My Toolbox_v4.0" "4.0" false "6de8682e-9c3c-407e-bad7-aa103d738d08" "My Toolbox" "2.0" true "6de8682e-9c3c-407e-bad7-aa103d738d08"
卸载 My Toolbox
版本 2.0
,并确认它已卸载。
matlab.addons.uninstall('My Toolbox','2.0'); addons = matlab.addons.installedAddons
addons = 1×4 table Name Version Enabled Identifier ___________________________ _________ _______ ______________________________________ "My Toolbox_v4.0" "4.0" false "6de8682e-9c3c-407e-bad7-aa103d738d08"
通过指定返回的标识符列表中的第一项来启用 My Toolbox
版本 4.0
。然后,确认它已启用。
matlab.addons.enableAddon('My Toolbox_v4.0','4.0') matlab.addons.isAddonEnabled('My Toolbox_v4.0','4.0')
ans = logical 1
卸载工具箱的所有版本
假设您的系统上安装了名为 My Toolbox
的工具箱的版本 2.0
和版本 4.0
。您认为不再需要 My Toolbox
,决定卸载该工具箱的所有版本。
获取已安装的附加功能列表。
addons = matlab.addons.installedAddons
addons = 2×4 table Name Version Enabled Identifier ___________________________ _________ _______ ______________________________________ "My Toolbox_v4.0" "4.0" true "6de8682e-9c3c-407e-bad7-aa103d738d08" "My Toolbox" "2.0" false "6de8682e-9c3c-407e-bad7-aa103d738d08"
卸载 My Toolbox
的所有版本。
matlab.addons.uninstall(addons.Identifier(1),'All')
输入参数
name
— 附加功能的名称
字符向量 | 字符串
要卸载的附加功能的名称,指定为字符向量或字符串。要确定附加功能的名称,请使用 matlab.addons.installedAddons
函数。
identifier
— 附加功能的唯一标识符
字符向量 | 字符串
要卸载的附加功能的唯一标识符,指定为字符向量或字符串。要确定附加功能的唯一标识符,请使用 matlab.addons.installedAddons
函数。
version
— 附加功能的版本
字符向量 | 字符串
要卸载的附加功能的版本,指定为字符向量或字符串。要确定附加功能的版本,请使用 matlab.addons.installedAddons
函数。
版本历史记录
在 R2018b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)