Info
This question is locked. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Decision Branching, modification Script
    8 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Francis Adams Kwofie
 am 5 Jul. 2021
  
    
    
    
    
    Locked: DGM
      
      
 am 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)")
1 Kommentar
Akzeptierte Antwort
  Dhruv G
      
 am 5 Jul. 2021
        if doPlot
    plot(density)
    title("Sample Densities")
    xticklabels(element)
    ylabel("Density (g/cm^3)")
end
0 Kommentare
Weitere Antworten (0)
This question is locked.
Siehe auch
Kategorien
				Mehr zu Logical finden Sie in Help Center und File Exchange
			
	Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!