Info
This question is locked. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Decision Branching, modification Script
조회 수: 32 (최근 30일)
이전 댓글 표시
Modify the script so that the plotting code on lines 4-7 are executed only when doPlot is 1.
plot(density)
title("Sample Densities")
xticklabels(element)
ylabel("Density (g/cm^3)")
댓글 수: 1
채택된 답변
Dhruv G
2021년 7월 5일
if doPlot
plot(density)
title("Sample Densities")
xticklabels(element)
ylabel("Density (g/cm^3)")
end
댓글 수: 0
추가 답변 (0개)
This question is locked.
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!