color plotting matlab yellow

17 visualizaciones (últimos 30 días)
AA
AA el 24 de Dic. de 2014
Comentada: Star Strider el 24 de Dic. de 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)

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by