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.
Thanks! is there another way to display the points on the line?

请先登录,再进行评论。

回答(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