color plotting matlab yellow

27 次查看(过去 30 天)
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)

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2014-12-24
编辑:Azzi Abdelmalek 2014-12-24
plot(x1,'y')
%or
plot(x1,'color',[1 1 0])
  1 个评论
Star Strider
Star Strider 2014-12-24
Note that yellow may be difficult to see. You may want to increase the 'LineWidth' property as well.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by