Plotting with different colors
    6 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Aftab Ahmed Khan
      
 am 10 Okt. 2014
  
    
    
    
    
    Kommentiert: Aftab Ahmed Khan
      
 am 10 Okt. 2014
            Hi everyone, i want to plot these graphs wtih different colors as at the moment all of them are black. This plot command is inside the loop, each time it plots one curve on the figure window. So i want each time it plots the graph with different color. Thank you so much.
plot(ITstore,bptime,'-k','LineWidth',2);

0 Kommentare
Akzeptierte Antwort
  Image Analyst
      
      
 am 10 Okt. 2014
        You might check out this similar discussion: http://www.mathworks.com/matlabcentral/answers/158091-automating-line-markers-colors
Weitere Antworten (1)
  Azzi Abdelmalek
      
      
 am 10 Okt. 2014
        Don't specify the color k
plot(ITstore,bptime,'-','LineWidth',2)
2 Kommentare
  Azzi Abdelmalek
      
      
 am 10 Okt. 2014
				Look at this example
x=linspace(0,10,100);
y=[sin(x)' cos(x)']
plot(x,y,'-')
Siehe auch
Kategorien
				Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




