how to make a single plot with different colors?

5 ビュー (過去 30 日間)
Arun Badigannavar
Arun Badigannavar 2013 年 4 月 17 日
x=1:10;
y=1:10;
plot(x,y)
How to make one color from 1 to 5 ,,,and 6 to 10 another plot?

採用された回答

Iman Ansari
Iman Ansari 2013 年 4 月 17 日
Hi
x=1:10;
y=1:10;
plot(x(1:5),y(1:5),'r')
hold on
plot(x(5:10),y(5:10),'g')

その他の回答 (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