Given a user defined matrix and angle of rotation, rotate the elements of output matrix as clockwise or anti-clockwise. Angle will always be multiples of 90 degrees.
e.g A = [1 2 3; 4 5 6; 7 8 9] Angle = 90
Output Matrix = [3 6 9; 2 5 8; 1 4 7]
Happy clocking !!
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers118
Suggested Problems
-
465 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
13590 Solvers
-
07 - Common functions and indexing 2
421 Solvers
-
What is Sum Of all elements of Matrix
444 Solvers
-
Find out sum of all elements of given Matrix
532 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Error in test 4.
Sorry Jean-Marie, I just corrected test 4, thanks for informing :)