Plot and scatter plot, weird lines removal

9 visualizaciones (últimos 30 días)
Daniel Arvidsson
Daniel Arvidsson el 24 de Nov. de 2020
Comentada: Daniel Arvidsson el 24 de Nov. de 2020
Hi!
I have a plot and another scatter plot in same window, but i get weird lines between the scatters. How can i remove those? My code is:
plot(g,f), grid on, hold on
scatter(g_v,f_v)
xlabel('g(s)=c(s)*s')
ylabel('f(s)=q*EBO(s)')

Respuesta aceptada

VBBV
VBBV el 24 de Nov. de 2020
Editada: VBBV el 24 de Nov. de 2020
%f true
plot(g,f,'+');
Use a marker in the plot function By default plot uses a continous line
  1 comentario
Daniel Arvidsson
Daniel Arvidsson el 24 de Nov. de 2020
Thank you! I hade another plot in the same program that made it extra weird to that i forgotten about.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by