| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
K = convhull(x,y)
[K,a] = convhull(...)
K = convhull(x,y) returns indices into the x and y vectors of the points on the convex hull.
K = convhull(x,y,options) specifies a cell array of strings options that were previously used by Qhull. Qhull-specific options are no longer required and are currently ignored.
[K,a] = convhull(...) also returns the area of the convex hull.
convhull uses CGAL, see http://www.cgal.org.
Use plot to plot the output of convhull.
xx = -1:.05:1; yy = abs(sqrt(xx)); [x,y] = pol2cart(xx,yy); k = convhull(x,y); plot(x(k),y(k),'r-',x,y,'b+')

DelaunayTri/convexHull, DelaunayTri/voronoiDiagram, convhulln, delaunay, polyarea, voronoi
![]() | conv2 | convhulln | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |