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

1 visualizzazione (ultimi 30 giorni)
How can I change the line color in a graph using plot? any one please reply
-------- vivek overtrade

Risposta accettata

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

Più risposte (1)

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

Categorie

Scopri di più su Graph and Network Algorithms in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by