color plotting matlab yellow

18 ビュー (過去 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 Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by