listRequiredFiles
説明
は指定したファイルの実行に必要なプロジェクト ファイルの名前を返します。requiredfiles
= listRequiredFiles(proj
,files
)
例
必要なファイルの取得
プロジェクト Times Table App を開きます。currentProject
を使用してプロジェクト オブジェクトを作成します。
matlab.project.example.timesTable proj = currentProject;
Times Table アプリ ファイルに必要なファイルを取得します。
file = "source/timestable.mlapp"
requiredfiles = listRequiredFiles(proj,file);
requiredfiles = 2×1 string array "C:\myProjects\examples\TimesTableApp\source\timestable.mlapp" "C:\myProjects\examples\TimesTableApp\source\timesTableGame.m"
入力引数
proj
— プロジェクト
matlab.project.Project
オブジェクト
プロジェクト。matlab.project.Project
オブジェクトとして指定します。currentProject
を使用して、現在読み込まれているプロジェクトからプロジェクト オブジェクトを作成します。
files
— プロジェクト ファイルのパス
文字ベクトルの cell 配列 | string 配列 | ProjectFile
オブジェクト配列
ファイル拡張子を含むプロジェクト ファイルのパス。文字ベクトルの cell 配列、string 配列、または ProjectFile
オブジェクト配列として指定します。files
をファイルの絶対パスまたはプロジェクトのルート フォルダーへの相対パスとして指定します。ファイルはプロジェクト ルート フォルダー内になければなりません。
出力引数
requiredfiles
— 必要なプロジェクト ファイル
string 配列
必要なプロジェクト ファイル。string 配列として返されます。
バージョン履歴
R2019a で導入
MATLAB コマンド
次の 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)