Plot and scatter plot, weird lines removal

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

 采纳的回答

VBBV
VBBV 2020-11-24
编辑:VBBV 2020-11-24
%f true
plot(g,f,'+');
Use a marker in the plot function By default plot uses a continous line

1 个评论

Thank you! I hade another plot in the same program that made it extra weird to that i forgotten about.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Scatter Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by