Problem 2861. Is the test point on the line segment?
Solution Stats
Problem Comments
-
2 Comments
Guillaume
on 22 Jan 2015
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.
Brian Hannan
on 22 Jan 2015
Thanks, Guillaume. I just fixed the error.
Solution Comments
-
1 Comment
Alfonso Nieto-Castanon
on 22 Jan 2015
perhaps a few more test cases will help...
-
2 Comments
Jan Orwat
on 22 Jan 2015
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];
Brian Hannan
on 22 Jan 2015
Thanks for pointing this out, Jan.
Problem Recent Solvers17
Suggested Problems
-
2871 Solvers
-
285 Solvers
-
Rosenbrock's Banana Function and its derivatives
142 Solvers
-
Convert hex color specification to MATLAB RGB
223 Solvers
-
316 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!