You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
It provides not only the distance between a line segment and a point it also give the position of the nearest point.
v1, and v2 are the starting and ending positions of the line segment, while pt is the position of the point.
source is Malcolm Kesson
Cite As
Mustafa Codur (2026). distance between point and line segments (https://www.mathworks.com/matlabcentral/fileexchange/97462-distance-between-point-and-line-segments), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (1.29 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
