Decision Branching, modification Script
Info
This question is locked. Reopen it to edit or answer.
Show older comments
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 Comment
bhuvan lekkala
on 10 Nov 2021
this is correct
Accepted Answer
More Answers (0)
This question is locked.
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!