Problem 412. Back to basics 22 - Rotate a matrix
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Nick
on 29 Jun 2014
Very nice problem to solve
Chaya N
on 22 Oct 2016
The test suite does not like the inbuilt function . Says there are too many output arguments!
Chaya N
on 22 Oct 2016
Is there something wrong with the test suite? The assertion fails and I get the following message:
"Error using rotate Too many output arguments. Error in TestPoint1 (line 3) assert(isequal(rotate(x),y_correct))"
Aditya Jain
on 23 Oct 2016
Yes it rotate is an inbuilt MATLAB function and it overshadows this. Changed the function name to rotateBy90
Solution Comments
-
1 Comment
sea knowledge
on 19 Dec 2012
quite easy
Problem Recent Solvers832
Suggested Problems
-
21137 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1227 Solvers
-
6719 Solvers
-
691 Solvers
-
Determine Whether an array is empty
703 Solvers
More from this Author39
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!