Problem 412. Back to basics 22 - Rotate a matrix
Solution Stats
Problem Comments
-
4 Comments
Very nice problem to solve
The test suite does not like the inbuilt function . Says there are too many output arguments!
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))"
Yes it rotate is an inbuilt MATLAB function and it overshadows this. Changed the function name to rotateBy90
Solution Comments
-
1 Comment
quite easy
Problem Recent Solvers866
Suggested Problems
-
1693 Solvers
-
Replace NaNs with the number that appears to its left in the row.
2621 Solvers
-
Increment a number, given its digits
614 Solvers
-
Create matrix of replicated elements
363 Solvers
-
Simple equation: Annual salary
4071 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!