Problem 45313. Find the shortest distance between a point and a straight line.
Given the Cartesian coordinates of three points A, B and C (in a flat Euclidean space), find the shortest distance between the straight line through A and B, and the point C.
Assumption:
A and B do not coincide.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers14
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2706 Solvers
-
Longest run of consecutive numbers
5329 Solvers
-
Create a vector whose elements depend on the previous element
644 Solvers
-
360 Solvers
-
79 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!