Main Content

updateDependencies

Update project dependencies

Description

example

updateDependencies(proj) runs a dependency analysis on the specified project to update the known dependencies between project files.

Examples

collapse all

Open the Times Table App project. Use currentProject to create a project object from the currently loaded project.

matlab.project.example.timesTable
proj = currentProject;

Update the project dependencies

updateDependencies(proj);

Get the files required by the timestable.mlapp project file.

g = proj.Dependencies;
requiredFiles = bfsearch(g, which("source/timestable.mlapp"))
requiredFiles =

  2×1 cell array

    {'C:\myProjects\examples\TimesTableApp\source\timestable.mlapp'}
    {'C:\myProjects\examples\TimesTableApp\source\timesTableGame.m'}

Input Arguments

collapse all

Project, specified as a matlab.project.Project object. Use currentProject to create a project object from the currently loaded project.

Introduced in R2019a