Distance between point and a line ?

4 次查看(过去 30 天)
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 个评论
Jan
Jan 2017-5-9
编辑:Jan 2017-5-9
Please use helpful tags only. There is no relation to ODE45, therefore I've removed these tags.

请先登录,再进行评论。

回答(2 个)

Guillaume
Guillaume 2017-5-9
编辑:Guillaume 2017-5-9
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 2017-8-20
this question have been answered by a mathwork staff heremathwork staff here

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by