k = convhull(___,'Simplify',tf)
specifies whether to remove vertices that do not contribute to the area or volume of the
convex hull. tf is false by default.
For 2-D points, k is a column vector containing the row
indices of the input points that make up the convex hull, arranged
counterclockwise.
For 3-D points, k is a 3-column matrix representing a
triangulation that makes up the convex hull. Each row represents a facet of the
triangulation. The values represent the row indices of the input points.
av — Area or volume scalar
Area or volume of the convex hull, returned as a scalar.
For 2-D points, av is the area of the convex hull.
For 3-D points, av is the volume of the convex hull.
Tips
To plot the output of convhull in two dimensions, use the plot function. To plot the output of convhull in three
dimensions, use trisurf or trimesh.
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
Code generation supports computation of a convex hull for 2-D input points
only.
Thread-Based Environment Run code in the background using MATLAB® backgroundPool or accelerate code with Parallel Computing Toolbox™ ThreadPool.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.