Problem 512. Spot the rectangle
Solution Stats
Problem Comments
-
2 Comments
test cases imply that the question title should be "spot the square"
I added a rectangular (non-square) test case. Thanks for the note.
Solution Comments
-
2 Comments
This is a good answer. I changed the test suite so that you wouldn't have to deal with logical input matrices. Sorry about that!
This code is referenced in the following blog post: http://blogs.mathworks.com/community/2015/01/19/robot-game-playing-in-matlab-part-2/
Problem Recent Solvers93
Suggested Problems
-
1962 Solvers
-
2074 Solvers
-
Check to see if a Sudoku Puzzle is Solved
299 Solvers
-
Sum all integers from 1 to 2^n
11059 Solvers
-
Project Euler: Problem 10, Sum of Primes
1146 Solvers
More from this Author50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!