convhull
Convex hull of 2-D or 3-D points
📝Syntax
K = convhull(P)
K = convhull(x, y)
K = convhull(x, y, z)
K = convhull(..., 'Simplify', tf)
[K, A] = convhull(x, y)
convhull(P)
📄Description

convhull computes the convex hull of planar or spatial points.

When called without output for planar points, it plots the hull.

💡Examples
Compute and plot a planar convex hull.
P = [0 0; 1 0; 1 1; 0 1; 0.4 0.6];
[K, A] = convhull(P);
convhull(P)
🔗See Also
convhullnboundary
🕔Version History
Version Description
2.0.0 Initial version.
Edit this page on GitHub