
How to a two plot in same x value for different y value?
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    VIJAY
 el 29 de Mzo. de 2020
  
    
    
    
    
    Respondida: Cris LaPierre
    
      
 el 29 de Mzo. de 2020
            I write a matlab program as follow
clear all;clc;
file1;
y=0;
for t=1:100
y=y+2;
end
plot(y,'b','linewidth',3);
in file1.m  has following program
k=0;
for t=1:100
k=k+1;
end
plot(k,'r','linewidth',3);
I want to got a single plot while calling a file1 its blue colour plot after that the plot has red colour in same x axis value. 
Respuesta aceptada
  Cris LaPierre
    
      
 el 29 de Mzo. de 2020
        If you have 15 minutes, I suggest going through Chapter 9 of MATLAB Onramp. It will introduce you to plotting in MATLAB.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre MATLAB Coder en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


