Problem 2861. Is the test point on the line segment?
Solution Stats
Problem Comments
-
2 Comments
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.
Solution Comments
-
1 Comment
perhaps a few more test cases will help...
-
2 Comments
This is not a proper solution. For example it returns false negative for pa = [0,0,0]; pb = [3,3,0]; pc = [2,2,0]; and false positive for pa = [0,0,0]; pb = [3,3,3]; pc = [2,2,1];
Thanks for pointing this out, Jan.
Problem Recent Solvers17
Suggested Problems
-
Given two arrays, find the maximum overlap
828 Solvers
-
1443 Solvers
-
Getting the absolute index from a matrix
221 Solvers
-
Sum the entries of each column of a matrix which satisfy a logical condition.
145 Solvers
-
Help the Patriots get to the Super Bowl
163 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!