How can I change the line color in a graph using plot?

How can I change the line color in a graph using plot? any one please reply
-------- vivek overtrade

 採用された回答

Mischa Kim
Mischa Kim 2014 年 7 月 23 日

0 投票

vivek, check out the doc for starters, e.g.
x = 0:0.1:5;
y = sin(x);
plot(x,y,'r-o')

1 件のコメント

vivek
vivek 2014 年 7 月 23 日
really thanks i ll see the doc first
------- vivek overtrade

サインインしてコメントする。

その他の回答 (1 件)

SRI
SRI 2014 年 7 月 23 日

0 投票

T = 0:0.1:10;
Y = sin(T.*pi);
plot(y,'r')
Hi vivek Just try this

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2014 年 7 月 23 日

コメント済み:

2014 年 7 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by