MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

(^2) Click Analyze. The impact graph displays the structure of all analyzed dependencies
in the project. The right pane lists required toolboxes and any problem files. Observe
that there are no problems files listed.
Now, remove one of the required files. Select the Files view, right click on the source/
timesTableGame.m file, and select Remove from Project. Click Remove in the
Remove from Project dialog box.
Check again for problems.
(^1) Select the Dependency Analysis view again.
(^2) In the Project tab, click Analyze > Reanalyze all.
(^3) Hover over the messages under Problems and click Find All to view the files that
use a problem file. The graph updates to display only the problem file,
timesTableGame.m, and the problem message, Not in project, in the right
panel.
(^4) To view the dependencies of the problem file, on the Dependency Analysis tab, in
the Impact Analysis section, select Find > All Dependencies of Selection.
Now that you have seen the problem, fix it by returning the missing file to the project.
Right-click the file and select Add to Project. The next time you run a dependency
analysis, the file does not appear as a problem file.
After running a dependency analysis, to investigate the dependencies of modified files,
perform an impact analysis.
(^1) On the Dependency Analysis tab, in the Impact Analysis section, select Find > All
Files.
(^2) In the Impact Analysis section, choose Select > Modified Files.
3 To view the dependencies of the modified files, in the Impact Analysis section, select
Find > All Dependencies of Selection.
Run Project Integrity Checks
To make sure that your changes are ready to commit, check your project. On the Project
tab, click Run Checks to run the project integrity checks. The checks look for missing
files, files to add to source control or retrieve from source control, and other issues. The
Checks dialog box offers automatic fixes to problems found, when possible. When you
click a Details button in the Checks dialog box, you can view recommended actions and
decide whether to make the changes.
31 Projects

Free download pdf