Problem 412. Back to basics 22 - Rotate a matrix

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

70.0% Correct | 30.0% Incorrect
Last Solution submitted on Jan 06, 2026

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers931

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!