Main Content

dependencies.toolboxDependencyAnalysis

Find add-on dependencies

Description

example

names = dependencies.toolboxDependencyAnalysis(files) returns names, a cell array of the add-on names required by the files in files.

example

[names, folders] = dependencies.toolboxDependencyAnalysis(files) also returns folders, a cell array of the add-on folders.

Examples

collapse all

Find all the required add-ons for the model vdp.

files={'vdp'};
names = dependencies.toolboxDependencyAnalysis(files)
names =

  1×1 cell array

    {'Simulink'}

Tip

You can interactively run a dependency analysis. You can find the required add-ons for the entire project, for selected files, or for a model. You can see which products a new team member requires to use the design, or find which file is introducing a product dependency. See Find Required Products and Add-Ons.

To programmatically check which files are required, see dependencies.fileDependencyAnalysis.

To view long product names, examine the names cell array as follows:

names{:}
ans =

    'Simulink'

Find the names and folders of the required add-ons for the model vdp.

files={'vdp'};
[names, folders] = dependencies.toolboxDependencyAnalysis(files)
names =

  1×1 cell array

    {'Simulink'}


folders =

  1×1 cell array

    {'simulink'}

Input Arguments

collapse all

Names of files on the MATLAB® path or full paths to files, specified as a cell array of strings.

Output Arguments

collapse all

Add-on names required by the files in files, returned as a cell array of character vectors.

(Optional) Required add-on folders, returned as a cell array of character vectors.

Introduced in R2012a