-
2 Comments
yurenchu
on 15 Aug 2017
This method (as well as several others) would fail in a more extensive test suite; for example, when x = [1,1,2] and y = [2,1,1]; or when x = [-2,-2,-4,-4] and y = [1,3,1,-1]; or when x = [-1,-1,3] and y = [-3,1,1].
Alfonso Nieto-Castanon
on 4 Dec 2017
@yurenchu, Thanks for pointing this out, I have added a few more test cases now
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!