MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Analyze Project Dependencies


To analyze the structure of a project and discover files required by the project, run a
dependency analysis. You can run dependency analysis at any point in your workflow
when you want to check that the project has all required files. For example, it is a good
idea to check dependencies when setting up a project, before submitting a version of your
project to source control, and before sharing the project.

Running a dependency analysis can show you how a change affects other files before you
make the change. For example, it is common to use dependency analysis to examine your
project structure, to find, investigate, and resolve problems in project files, or to find the
toolboxes required by the project. When investigating the potential impact of a change in
requirements, use dependency analysis to find the design files linked to the requirements
document. You also can use it to investigate change set impact by finding upstream and
downstream dependencies of modified files before committing the changes. Finding these
dependencies can help you identify design and test files that need modification and help
you find the tests you need to run.

After dependency analysis, you can open or label the files. You can also export the results
as workspace variables, images, or reloadable files. And you can send these files for
custom task processing. Exporting the results enables further processing or archiving of
impact analysis results. You can add the exported list of files to reports or other
documents that describe the impact of a change.

Run Dependency Analysis


Before running a dependency analysis on a project, make sure that you have added all
your files to the project. The dependency analysis only checks the files in your project. For
more information, see “Add Files to Project” on page 31-6.

To run a dependency analysis on all the files in your project, select the Dependency

Analysis view. Then, on the Dependency Analysis tab, click Analyze.

To analyze only specific files, on the Dependency Analysis tab, click Analyze > Select
Files to Analyze. Select the files for analysis and then click Analyze.

To analyze the dependencies of external toolboxes, on the Dependency Analysis tab,
click Options > Analyze External Toolboxes.

31 Projects

Free download pdf