How to plot data of 3 columns with different line style.
    1 visualización (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Rangasamy Kotteeswaran
 el 21 de Ag. de 2017
  
    
    
    
    
    Comentada: Rangasamy Kotteeswaran
 el 21 de Ag. de 2017
            i am supposed to plot the data plot(EX_1(1:100,1:3),'k-'). with this I get 3 plots with same black solid style. But i need different colours. any answer. thanks in advance
0 comentarios
Respuesta aceptada
  José-Luis
      
 el 21 de Ag. de 2017
        
      Editada: José-Luis
      
 el 21 de Ag. de 2017
  
      Best to do it explicitly for each line, but if you want automagic:
set(groot,'defaultAxesColorOrder',[0,0,0],'defaultAxesLineStyleOrder','-|:|--');
plot(rand(10,3))
3 comentarios
  Adam
      
      
 el 21 de Ag. de 2017
				If you are in an archaic version of Matlab use
set( 0,... )
instead
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


