MATLAB: Plot and scatter plot, weird lines removal

plot

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)')

Best Answer

%f true
plot(g,f,'+');
Use a marker in the plot function By default plot uses a continous line