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 Solvers20
Suggested Problems
-
Find state names that end with the letter A
1197 Solvers
-
Find the largest value in the 3D matrix
1662 Solvers
-
Split a string into chunks of specified length
2056 Solvers
-
Circular Primes (based on Project Euler, problem 35)
650 Solvers
-
Moving average (variable kernel length)
135 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.