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

1 次查看(过去 30 天)
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 个)

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

类别

Help CenterFile Exchange 中查找有关 2-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