How to calculate the shortest distance between points and a line?

22 views (last 30 days)
How to calculate the shortest distance between a set of points and a line? I have set of points and a lineer line, I want to find a point which is shortest distance to the line.

Accepted Answer

Rik
Rik on 9 Apr 2019
Edited: Rik on 9 Apr 2019
You can use the point_to_line_distance function.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!