Info

This question is locked. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Decision Branching, modification Script

조회 수: 32 (최근 30일)
Francis Adams Kwofie
Francis Adams Kwofie 2021년 7월 5일
Locked: DGM 2024년 8월 16일
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
bhuvan lekkala
bhuvan lekkala 2021년 11월 10일
this is correct

채택된 답변

Dhruv G
Dhruv G 2021년 7월 5일
if doPlot
plot(density)
title("Sample Densities")
xticklabels(element)
ylabel("Density (g/cm^3)")
end

추가 답변 (0개)

This question is locked.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by