color plotting matlab yellow

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)

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 24 Dec 2014
Edited: Azzi Abdelmalek on 24 Dec 2014
plot(x1,'y')
%or
plot(x1,'color',[1 1 0])

1 Comment

Note that yellow may be difficult to see. You may want to increase the 'LineWidth' property as well.

Sign in to comment.

More Answers (0)

Tags

Asked:

AA
on 24 Dec 2014

Commented:

on 24 Dec 2014

Community Treasure Hunt

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

Start Hunting!