Info

This question is locked. Rouvrir pour modifier ou répondre.

Decision Branching, modification Script

52 vues (au cours des 30 derniers jours)
Francis Adams Kwofie
Francis Adams Kwofie le 5 Juil 2021
Locked: DGM le 16 Août 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)")
  1 commentaire
bhuvan lekkala
bhuvan lekkala le 10 Nov 2021
this is correct

Réponse acceptée

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

Plus de réponses (0)

This question is locked.

Catégories

En savoir plus sur Geographic Plots dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by