Problem 2671. Check if vertices form a rectangle
Solution Stats
Problem Comments
-
5 Comments
Matt, Jon's example can 'kill' some approaches, that check for trapezoids. X=[-1 -0.5 0.5 1]; Y=[0 sqrt(3)/2 sqrt(3)/2 0]; can eliminate those solutions which check only for 3 unique distances between points. It would be beneficial, to try some trapezoids, as well as kites or rhombi. Anyway, great problem!
Ah yes, I agree. Test suite updated again.
I don't know why there is a loop in the test cases when the rng is set to a particular value. randi will generate the same values again and again.
Doesn't make much sense.
Solution Comments
Show commentsProblem Recent Solvers19
Suggested Problems
-
5778 Solvers
-
Calculate the Levenshtein distance between two strings
1458 Solvers
-
Back to basics 21 - Matrix replicating
1634 Solvers
-
Number of 1s in a binary string
9636 Solvers
-
678 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!