How to set line style and color of a line?

3 vues (au cours des 30 derniers jours)
Mr M.
Mr M. le 28 Mai 2015
I can draw a line with the command line(0,10,5,5), but how to set line style and color?

Réponses (1)

Sean de Wolski
Sean de Wolski le 28 Mai 2015
line([0,10],[5,5],'LineStyle',':','Color','r')
And for more info
doc line

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by