How to set line style and color of a line?

3 visualizaciones (últimos 30 días)
Mr M.
Mr M. el 28 de Mayo de 2015
Respondida: Sean de Wolski el 28 de Mayo de 2015
I can draw a line with the command line(0,10,5,5), but how to set line style and color?

Respuestas (1)

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

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by