Borrar filtros
Borrar filtros

Change color of points

70 visualizaciones (últimos 30 días)
Kjetil Nøkling
Kjetil Nøkling el 2 de Dic. de 2013
Comentada: Kjetil Nøkling el 2 de Dic. de 2013
Hi
Im trying to make a plot change its color and having a hard time.
My code looks something like this(very simplified):
while y<x
calculates x and y
plot(x,y); hold on;
end
How do I make all the points in a different color than the default blue I get.
Please help a noob out!
Thanks in advance

Respuesta aceptada

Simon
Simon el 2 de Dic. de 2013
Hi!
Look at the help of plot. You may give a LineSpec there.

Más respuestas (0)

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