Rotate counterclockwise a matrix 90 deg with left-bottom element - MATLAB Cody - MATLAB Central

Problem 40912. Rotate counterclockwise a matrix 90 deg with left-bottom element

Difficulty:Rate

Example:

Input

 [ 1 2 3
   4 5 6 ]

Output

 [ 3 6
   2 5
   1 4 ]

Solution Stats

58.53% Correct | 41.47% Incorrect
Last Solution submitted on Apr 30, 2025

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers160

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page