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

 Réponse acceptée

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

Plus de réponses (1)

SRI
SRI le 23 Juil 2014

0 votes

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

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by