Distance between point and a line ?

How do I calculate the normal distance between a point and a line connecting two other defined points ? ex p = [0 0] and a line connecting
A = [1 -2]; B = [-1 -1];

1 comentario

Jan
Jan el 9 de Mayo de 2017
Editada: Jan el 9 de Mayo de 2017
Please use helpful tags only. There is no relation to ODE45, therefore I've removed these tags.

Iniciar sesión para comentar.

Respuestas (2)

Guillaume
Guillaume el 9 de Mayo de 2017
Editada: Guillaume el 9 de Mayo de 2017

2 votos

Have you tried your favorite search engine? The first link that comes up for me, Wikipedia, has the answer.
Note that this has nothing to do with matlab, it's just (very basic) maths.
ahmed
ahmed el 20 de Ag. de 2017

0 votos

this question have been answered by a mathwork staff heremathwork staff here

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 9 de Mayo de 2017

Respondida:

el 20 de Ag. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by