Change color of points

176 vues (au cours des 30 derniers jours)
Kjetil Nøkling
Kjetil Nøkling le 2 Déc 2013
Commenté : Kjetil Nøkling le 2 Déc 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

Réponse acceptée

Simon
Simon le 2 Déc 2013
Hi!
Look at the help of plot. You may give a LineSpec there.
  1 commentaire
Kjetil Nøkling
Kjetil Nøkling le 2 Déc 2013
Thanks :)

Connectez-vous pour commenter.

Plus de réponses (0)

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