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 Solvers21
Suggested Problems
-
3490 Solvers
-
316 Solvers
-
Put two time series onto the same time basis
356 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
460 Solvers
-
Replace all zeros and NaNs in a matrix with the string 'error'
104 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.