Owning Class: geometry
Requires: MathScript RT Module
[c, d] = convexhull(X, Y)
Legacy Name: convhull
Computes the indexes of the points of a 2D convex hull and the area of the convex hull.
| Name | Description |
|---|---|
| X | Specifies the x-coordinates. X is a real matrix. |
| Y | Specifies the y-coordinates. Y is a real matrix of the same size as X. |
| Name | Description |
|---|---|
| c | Returns the indexes of the points of the convex hull. c is a matrix. |
| d | Returns the area of the convex hull. |
[C, D] = convexhull([-1, 1, 1, -1, 0], [-1, -1, 1, 1, 0])