plot
説明
入力引数
plan
— 計画
matlab.buildtool.Plan
オブジェクト
計画。matlab.buildtool.Plan
オブジェクトとして指定します。
例
タスクを依存関係グラフとしてプロット
ビルド計画内のタスクを依存関係グラフとしてプロットします。
例を開き、ビルド ファイルが含まれる plot_plan_example
フォルダーに移動します。
cd plot_plan_example
次のコードは、ビルド ファイルの内容を示しています。
function plan = buildfile import matlab.buildtool.tasks.CodeIssuesTask import matlab.buildtool.tasks.TestTask % Create a plan from task functions plan = buildplan(localfunctions); % Add the "check" task to identify code issues plan("check") = CodeIssuesTask; % Add the "test" task to run tests plan("test") = TestTask; % Make the "archive" task the default task in the plan plan.DefaultTasks = "archive"; % Make the "archive" task dependent on the "check" and "test" tasks plan("archive").Dependencies = ["check" "test"]; end function archiveTask(~) % Create ZIP file filename = "source_" + ... string(datetime("now",Format="yyyyMMdd'T'HHmmss")); zip(filename,"*") end
ビルド ファイルから計画を読み込みます。
plan = buildfile
plan = Plan with tasks: archive - Create ZIP file check - Identify code issues test - Run tests
計画内のタスクを依存関係グラフとしてプロットします。グラフはタスクをノードとして表示します。"archive"
タスクは "check"
タスクと "test"
タスクに依存するため、グラフには、これらの依存関係を表す 2 つのエッジも含まれます。
plot(plan)
バージョン履歴
R2022b で導入
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)