Given the [x,y,z] coordinates for the three points pa, pb, and pc, return true if the test point pc is on the line segment with endpoints pa and pb.
pc is on the line segment if it lies at one of the end points.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers22
Suggested Problems
-
Find the sum of all the numbers of the input vector
55118 Solvers
-
Which values occur exactly three times?
5250 Solvers
-
Back to basics 11 - Max Integer
812 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14221 Solvers
-
How many days does the cat take to climb out of the hole?
83 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Your recent edit to the test suite broke it. You need a space or a comma between the two -1 in the definition of pa in the first test.
Thanks, Guillaume. I just fixed the error.