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.
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.
Code generation supports computation of a convex hull for 2-D input points
only.
The MATLAB® implementation of convhull uses infinite-precision
arithmetic. If the input points have geometric degeneracies, the generated code might
not produce the same result as MATLAB.
The number of points on the convex hull depends on the input data and is not known
at compile time. Therefore, you must enable support for variable-size data and dynamic
memory allocation.
Refer to the usage notes and limitations in the C/C++ Code
Generation section. The same usage notes and limitations apply to GPU code generation.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.