ヘルプ センターヘルプ センター
このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。
アドオンの依存関係の検索
names = dependencies.toolboxDependencyAnalysis(files)
[names, folders] = dependencies.toolboxDependencyAnalysis(files)
例
names = dependencies.toolboxDependencyAnalysis(files) は files のファイルが要求するアドオンの名前の cell 配列である names を返します。
names
files
また、[names, folders] = dependencies.toolboxDependencyAnalysis(files) は、アドオン フォルダーの cell 配列である folders を返します。
folders
すべて折りたたむ
モデル vdp の必要なすべてのアドオンを検索します。
vdp
files={'vdp'}; names = dependencies.toolboxDependencyAnalysis(files)
names = 1×1 cell array {'Simulink'}
ヒント
依存関係の解析を対話的に実行できます。プロジェクト全体、選択されたファイル、またはモデルで必要なアドオンを検索できます。新しいチーム メンバーが設計を使用するためにはどの製品が必要か、またはどのファイルが製品の依存関係を生み出しているかを確認できます。必要な製品とアドオンの特定を参照してください。
どのファイルが必要かをプログラムでチェックする方法については、dependencies.fileDependencyAnalysis を参照してください。
dependencies.fileDependencyAnalysis
次のように長い製品名を表示して、names cell 配列を調べるには、次のようにします。
names{:}
ans = 'Simulink'
モデル vdp の必要なアドオンの名前とフォルダーを検索します。
files={'vdp'}; [names, folders] = dependencies.toolboxDependencyAnalysis(files)
names = 1×1 cell array {'Simulink'} folders = 1×1 cell array {'simulink'}
MATLAB® パス上のファイルの名前またはファイルへの絶対パス。string の cell 配列として指定します。
files のファイルが要求するアドオン名。文字ベクトルの cell 配列として返されます。
(オプション) 必要なアドオン フォルダー。文字ベクトルの cell 配列として返されます。
R2012a で導入
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office