I have two vectors which I plot with the following formula but I want vector x1 to be plotted yellow. How do I do that?
figure
plot(x1)
hold on
plot(x2)

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 24 Déc 2014
Modifié(e) : Azzi Abdelmalek le 24 Déc 2014

1 vote

plot(x1,'y')
%or
plot(x1,'color',[1 1 0])

1 commentaire

Star Strider
Star Strider le 24 Déc 2014
Note that yellow may be difficult to see. You may want to increase the 'LineWidth' property as well.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by