Covering some basic topics I haven't seen elsewhere on Cody.
Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; 3 4] -> [2 4; 1 3]
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers939
Suggested Problems
-
Find the alphabetic word product
3473 Solvers
-
Increment a number, given its digits
689 Solvers
-
Find the maximum number of decimal places in a set of numbers
3597 Solvers
-
Matlab Basics - Absolute Value
679 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2237 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!
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