Main Content

updateDependencies

プロジェクトの依存関係の更新

R2019a 以降

説明

updateDependencies(proj) は指定したプロジェクトで依存関係の分析を実行し、プロジェクト ファイル間の既知の依存関係を更新します。

すべて折りたたむ

プロジェクト Times Table App を開きます。currentProject を使用して、現在読み込まれているプロジェクトからプロジェクト オブジェクトを作成します。

openExample("matlab/TimesTableProjectExample")
proj = currentProject;

プロジェクトの依存関係の更新

updateDependencies(proj);

timestable.mlapp プロジェクト ファイルで必要なファイルを取得します。

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'}

入力引数

すべて折りたたむ

プロジェクト。matlab.project.Project オブジェクトとして指定します。currentProject を使用して、現在読み込まれているプロジェクトからプロジェクト オブジェクトを作成します。

バージョン履歴

R2019a で導入