color plotting matlab yellow

20 visualizzazioni (ultimi 30 giorni)
AA
AA il 24 Dic 2014
Commentato: Star Strider il 24 Dic 2014
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)

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 24 Dic 2014
Modificato: Azzi Abdelmalek il 24 Dic 2014
plot(x1,'y')
%or
plot(x1,'color',[1 1 0])
  1 Commento
Star Strider
Star Strider il 24 Dic 2014
Note that yellow may be difficult to see. You may want to increase the 'LineWidth' property as well.

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by