Removing connecting lines between points in plot

Hi, When i try to plot the following data x,y, and z using plot 3 function, i'm getting the plot, where the points have connection lines between them. How can i remove those connecting lines between points ? This is my code:
x=0:5:50;
y=0:5:50;
z=0:5:50;
plot3(x,y,z,'Color',[1,0,0],'Marker','o');
Thanks in advance.

 채택된 답변

Stefan Raab
Stefan Raab 2016년 5월 4일

6 개 추천

Hello,
add the following name value pair:
'LineStyle','none'
Kind regards, Stefan

댓글 수: 3

Rajesh Subramanian
Rajesh Subramanian 2016년 5월 4일
편집: Rajesh Subramanian 2016년 5월 4일
I tested it and it works like a charm. Thank you very much Stefan ! You helped me save hours on searching :)
I couldn't quite get it doing the same gives me an error
Can you please kindly give me the exact syntax of what exactly you did?
I need to remove a line coming bang in the middle of my graph & its frustrating me
Maryam
Maryam 2019년 1월 28일
Works the best!

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

추가 답변 (2개)

pinhas elbaiev
pinhas elbaiev 2018년 11월 25일

0 개 추천

i dont understand...plz can u show what u did?

댓글 수: 1

did you get it finally?
can you please show me what you did?

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

Maryam
Maryam 2019년 1월 28일

0 개 추천

errorbar(x, y ,'horizontal', 'LineStyle', 'none');
Pinhas,
try the code line above.
I was trying to plot the std lines horizontally, but I got some extra vertical lines. With this code line however, it only gave the horizontal lines.
Thanks Stefan. :)

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

태그

질문:

2016년 5월 4일

답변:

2019년 1월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by