File Exchange

image thumbnail


version 2.4 (68.3 KB) by Nicolas Douillet
Function to check if one vertex (set) is located inside or outside a given -opened- convex point set. Supports dimensions 2 and 3.


Updated 12 Aug 2020

GitHub view license on GitHub

Please first check the examples tab (.mlx file) here on the right for a complete description.

Once downloaded, typewrite 'help isinconvexset' or 'doc isinconvexset' in Matlab console for support.

Also works for multiple points to test.

Hyperplanes (edges in 2D, triangles in 3D) don't need to be coherently oriented.

Cite As

Nicolas Douillet (2020). isinconvexset (, GitHub. Retrieved .

Comments and Ratings (4)

Nicolas Douillet

Doesn't work yet for 'false 3D' (coplanar / point sets embeded in 3D)

Nicolas Douillet

You may now download again.

Nicolas Douillet

Mistake (theoritical error) found ! Please DO NOT DOWNLOAD till next version (2.0).

Chong WU

Excellent work!



See release notes for this release on GitHub:


+ cover img new test


+ floating point error management with epsilon
+ minimum input parsing
+ new cover img


cover img test


Major improvements : + hyperplanes use (edges / triangles), bug fix, increase speed, 2D/3D convex hulls of random point sets for examples, vectorize, also works for a set of vertices, update help, doc, description.


Improved typo, help, doc, description.


+ doc

- Modified picture

- Enlarge picture

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux