Distance from a point to polygon
Version 1.0.0.0 (1.18 KB) by
Alejandro Weinstein
Calculate the distance from a point to 2-D polygon, and the point on the polygon closest to the poin
4.1K Downloads
Updated
1 Apr 2008
No License
Calculate the distance from a point to 2-D polygon, and the point on the polygon closest to the point.
This is based on the function made by Michael Yoshpe. Also include the test suggested by Eric Schmitz.
Cite As
Alejandro Weinstein (2024). Distance from a point to polygon (https://www.mathworks.com/matlabcentral/fileexchange/19398-distance-from-a-point-to-polygon), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Elementary Polygons in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Distance from points to polyline or polygon
Inspired: Flow Cytometry GUI for Matlab
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |