Why is only one plot printing?
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Kaylene Widdoes
 el 26 de En. de 2016
  
    
    
    
    
    Respondida: Star Strider
      
      
 el 26 de En. de 2016
            Trying to get both resolutions of this graph to print on one figure. Any ideas why it's only printing one?
clear all
x = 1:6;
y = (sqrt((x.^4)+1))./(2+sin(x));
x1 = 1:.01:6;
y1 = (sqrt((x1.^4)+1))./(2+sin(x1)); 
plot(x,y,'o',x1,y1)
0 comentarios
Respuesta aceptada
  Star Strider
      
      
 el 26 de En. de 2016
        They both print. You asked it to plot (x,y) using only circle markers, and it plotted them that way. It plots (x1,y1) using a line, because that is the default. If you want it to plot a line along with the circle markers, do this:
plot(x,y,'-o',x1,y1)
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre 2-D and 3-D Plots 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!

