Azzera filtri
Azzera filtri

Change color of points

106 visualizzazioni (ultimi 30 giorni)
Kjetil Nøkling
Kjetil Nøkling il 2 Dic 2013
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;
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

Risposta accettata

Simon il 2 Dic 2013
Look at the help of plot. You may give a LineSpec there.

Più risposte (0)


Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by