帮助中心帮助中心
查找附加功能依存关系
names = dependencies.toolboxDependencyAnalysis(files)
[names, folders] = dependencies.toolboxDependencyAnalysis(files)
示例
names = dependencies.toolboxDependencyAnalysis(files) 返回 names,它是 files 中的文件所需的附加功能名称的元胞数组。
names
files
[names, folders] = dependencies.toolboxDependencyAnalysis(files) 还返回 folders,它是由附加功能文件夹组成的元胞数组。
folders
全部折叠
查找打开的模型 vdp 必需的所有附加功能。
vdp
openExample("vdp.slx"); names = dependencies.toolboxDependencyAnalysis(bdroot)
names = 1×1 cell array {'Simulink'}
提示
您可通过交互方式运行依存关系分析。您可以查找整个工程、所选文件或某个模型所需的附加功能。您可以看到新团队成员需要哪些产品才能使用该设计,或查明哪个文件正在引入产品依存关系。请参阅Find Required Products and Add-Ons。
要以编程方式检查需要哪些文件,请参阅 dependencies.fileDependencyAnalysis。
dependencies.fileDependencyAnalysis
要查看长产品名称,请按如下所示检查 names 元胞数组:
names{:}
ans = 'Simulink'
查找打开的模型 vdp 的所需附加功能的名称和文件夹。
openExample("vdp.slx"); [names, folders] = dependencies.toolboxDependencyAnalysis(bdroot)
names = 1×1 cell array {'Simulink'} folders = 1×1 cell array {'simulink'}
文件在 MATLAB® 路径中的名称或文件的完整路径,指定为字符串元胞数组。
files 中的文件所需的附加功能名称,以字符向量元胞数组形式返回。
(可选)所需的附加功能文件夹,以字符向量元胞数组形式返回。
在 R2012a 中推出
dependencies.fileDependencyAnalysis | 依存关系分析器
您点击的链接对应于以下 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office