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

1 vue (au cours des 30 derniers jours)
vivek
vivek le 23 Juil 2014
Commenté : vivek le 23 Juil 2014
How can I change the line color in a graph using plot? any one please reply
-------- vivek overtrade

Réponse acceptée

Mischa Kim
Mischa Kim le 23 Juil 2014
vivek, check out the doc for starters, e.g.
x = 0:0.1:5;
y = sin(x);
plot(x,y,'r-o')
  1 commentaire
vivek
vivek le 23 Juil 2014
really thanks i ll see the doc first
------- vivek overtrade

Connectez-vous pour commenter.

Plus de réponses (1)

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

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center 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