Cody

Problem 1840. Rotate Matrix Clockwise (45 Degree)

Solution 2717583

Submitted on 20 Jul 2020 by Raghunadh N
  • Size: 8
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = [7 3 5;1 2 8;6 4 9]; n = 7; y_correct = [3 5 8;7 2 9;1 6 4]; assert(isequal(mat_rot(x,n),y_correct))