color plotting matlab yellow

조회 수: 30 (최근 30일)
AA
AA 2014년 12월 24일
댓글: Star Strider 2014년 12월 24일
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