我一直在尝试使用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'.
我不明白为什么会收到此错误。
我认为您想要的功能是convhull
,而不是凸包。
内置函数'convexHull'实际上已被识别并在delaunay三角剖分的情况下使用。您收到该特定错误,因为您将其拼写错误。