Rotate matrix by -90 degrees - MATLAB Cody - MATLAB Central

Problem 43270. Rotate matrix by -90 degrees

Difficulty:Rate

Rotate a Matrix by -90 degrees

Example: X =

    1    2    3
    4    5    6
    7    8    9

output =

    7    4    1
    8    5    2
    9    6    3

Solution Stats

65.63% Correct | 34.38% Incorrect
Last Solution submitted on Jun 23, 2025

Problem Comments

Solution Comments

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

Problem Recent Solvers186

Suggested Problems

More from this Author43

Community Treasure Hunt

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

Start Hunting!