Problem 56468. IQpuzzler Preparation #1: Find all non-identical orientations of a matrix
Return all non-identical orientations of a 2-D matrix that can be produced by rotating or flipping it.
Input is an M-by-N matrix. You can assume integer values and no empty rows or columns.
Output is a 1-by-P cell array containing P unique M-by-N or N-by-M matrices.
Ordering of the output matrices does not matter, as long as there are no repetitions.
Example:
{ [2 0;2 2] , [0 2;2 2] , [2 2;0 2], [2 2;2 0] } = rotflip2d([2 0;2 2])
Background:
This function will be useful for the IQpuzzler challenge on Cody.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers4
Suggested Problems
-
961 Solvers
-
given 3 sides, find area of this triangle
797 Solvers
-
Test if a Number is a Palindrome without using any String Operations
231 Solvers
-
Project Euler: Problem 7, Nth prime
1428 Solvers
-
Removing rows from a matrix is easy - but what about inserting rows?
214 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!