MATLAB 帮助中心
本页翻译不是最新的。点击此处可查看最新英文版本。
查找文件要求的产品
names = dependencies.toolboxDependencyAnalysis(files)
[names, folders] = dependencies.toolboxDependencyAnalysis(files)
names = dependencies.toolboxDependencyAnalysis(files) 返回 files 要求的产品的名称。
names
files
示例
[names, folders] = dependencies.toolboxDependencyAnalysis(files) 还会返回 MATLAB® 安装中必需产品的文件夹。
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 元胞数组:
productName = names{:}
productName = 'Simulink'
查找打开的模型 vdp 的所需产品的名称和文件夹。
openExample("vdp.slx"); [productName, installFolder] = dependencies.toolboxDependencyAnalysis(bdroot)
productName = 1×1 cell array {'Simulink'} installFolder = 1×1 cell array {'simulink'}
要分析的文件的完整路径,指定为字符串标量、字符串数组或向量元胞数组。路径必须包括文件扩展名。
示例: "C:\Workspace\Functions\setup.m", fullfile(pwd,"models","myModel.slx")
"C:\Workspace\Functions\setup.m"
fullfile(pwd,"models","myModel.slx")
files 中的文件所需的产品的名称,以字符向量元胞数组形式返回。
(可选)在 MATLAB 安装中必需产品文件夹的名称,以字符向量元胞数组形式返回。
在 R2012a 中推出
dependencies.fileDependencyAnalysis | 依赖关系分析器
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处