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

297 Solutions

193 Solvers

Last Solution submitted on Feb 09, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers193

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!