Back to basics 22 - Rotate a matrix - MATLAB Cody - MATLAB Central

Problem 412. Back to basics 22 - Rotate a matrix

Difficulty:Rate

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

69.92% Correct | 30.08% Incorrect
Last Solution submitted on May 29, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
3

Problem Recent Solvers921

Suggested Problems

More from this Author39

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!