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

24 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Rik
Rik il 9 Apr 2019
Modificato: Rik il 9 Apr 2019
You can use the point_to_line_distance function.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by