Plot and scatter plot, weird lines removal

조회 수: 2 (최근 30일)
Daniel Arvidsson
Daniel Arvidsson 2020년 11월 24일
댓글: Daniel Arvidsson 2020년 11월 24일
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
Daniel Arvidsson
Daniel Arvidsson 2020년 11월 24일
Thank you! I hade another plot in the same program that made it extra weird to that i forgotten about.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by