Change color of points

182 Ansichten (letzte 30 Tage)
Kjetil Nøkling
Kjetil Nøkling am 2 Dez. 2013
Kommentiert: Kjetil Nøkling am 2 Dez. 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

Akzeptierte Antwort

Simon
Simon am 2 Dez. 2013
Hi!
Look at the help of plot. You may give a LineSpec there.

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by