Info

This question is locked. Reopen it to edit or answer.

Decision Branching, modification Script

25 views (last 30 days)
Francis Adams Kwofie
Francis Adams Kwofie on 5 Jul 2021
Locked: DGM on 16 Aug 2024
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)")

Accepted Answer

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

More Answers (0)

This question is locked.

Tags

Products

Community Treasure Hunt

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

Start Hunting!