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

8 ビュー (過去 30 日間)
vivek
vivek 2014 年 7 月 23 日
コメント済み: vivek 2014 年 7 月 23 日
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 日
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 日
T = 0:0.1:10;
Y = sin(T.*pi);
plot(y,'r')
Hi vivek Just try this

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by