MATLAB Answers

Plot and scatter plot, weird lines removal

1 view (last 30 days)
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)')

  0 Comments

Sign in to comment.

Accepted Answer

VBBV
VBBV on 24 Nov 2020
Edited: VBBV on 24 Nov 2020
%f true
plot(g,f,'+');
Use a marker in the plot function By default plot uses a continous line

  1 Comment

Daniel Arvidsson
Daniel Arvidsson on 24 Nov 2020
Thank you! I hade another plot in the same program that made it extra weird to that i forgotten about.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!