Why is boundary showing me an empty array?

With the following code Matlab ejects me k = [] empty, what could be the reason?
x = [0;0;0;0,;0,;0];
y = [0;6;7;8;9;10];
k = boundary(x,y);
x2 = x(k);
y2 = y(k);
figure
hold on
scatter(x2,y2)

댓글 수: 3

Adam
Adam 2019년 12월 11일
편집: Adam 2019년 12월 11일
Your points form a straight line. Maybe the boundary function does not support this. From a quick scan of the function help page I can't see if it does or not.
Christian_T
Christian_T 2019년 12월 11일
Thanks! is there another way to display the points on the line?
Just plot them:
plot( x, y )

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

답변 (0개)

카테고리

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

제품

릴리스

R2019b

태그

질문:

2019년 12월 11일

댓글:

2019년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by