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.94% Correct | 30.06% Incorrect
Last Solution submitted on Jul 06, 2025

Problem Comments

Solution Comments

Show comments
MATLAB EXPO 2025 Registration is Now Open! November 12 – 13, 2025
Registration is now open for MathWorks annual virtual event MATLAB EXPO 2025...
0

Problem Recent Solvers922

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!