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일

0 개 추천

%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에 대해 자세히 알아보기

태그

질문:

2020년 11월 24일

댓글:

2020년 11월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by