尝试在MATLAB中获取点的凸包时出错

问题描述 投票:-1回答:2

我一直在尝试使用Matlab中的内置函数“ convexhull”计算凸包。以下是我正在使用的代码:

y = [ 1 4 3 4 5 1];

x = [ 1 2 3 4 5 5];

convexhull(x_array,y_array);

我得到的错误是:

Undefined function 'convexhull' for input arguments of type 'double'.

我不明白为什么会收到此错误。

matlab convex-hull
2个回答
2
投票

我认为您想要的功能是convhull,而不是凸包。


0
投票

内置函数'convexHull'实际上已被识别并在delaunay三角剖分的情况下使用。您收到该特定错误,因为您将其拼写错误。

© www.soinside.com 2019 - 2024. All rights reserved.