In this problem, you are tasked with rotating a given matrix by 90 degrees in a counter-clockwise direction. The input will be a square matrix (i.e., the number of rows is equal to the number of columns), and you need to return a new matrix that is rotated by 90 degrees.Input:
  • A: A square matrix of size n x n (where n is a positive integer). The matrix A contains numerical values.
Output:
  • The function should return a new matrix, B, which is the original matrix A rotated by 90 degrees counter-clockwise.

Solution Stats

24 Solutions

16 Solvers

Last Solution submitted on Jun 19, 2025

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers16

Suggested Problems

Community Treasure Hunt

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

Start Hunting!