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

1 Ansicht (letzte 30 Tage)
vivek
vivek am 23 Jul. 2014
Kommentiert: vivek am 23 Jul. 2014
How can I change the line color in a graph using plot? any one please reply
-------- vivek overtrade

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by