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"
작업에 종속되므로 그래프에 이 종속 관계를 표현하는 간선이 두 개입니다.
plot(plan)
버전 내역
R2022b에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 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)