how to make a single plot with different colors?
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
x=1:10;
y=1:10;
plot(x,y)
How to make one color from 1 to 5 ,,,and 6 to 10 another plot?
0 commentaires
Réponse acceptée
  Iman Ansari
      
 le 17 Avr 2013
        Hi
x=1:10;
y=1:10;
plot(x(1:5),y(1:5),'r')
hold on
plot(x(5:10),y(5:10),'g')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Annotations dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!