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.
perhaps a few more test cases will help...
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.
Distance walked 2D
Project Euler: Problem 8, Find largest product in a large string of numbers
Is the Point in a Circle?
Avalaible area: wall construction
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office