Given an input number x, create a mirror image matrix 'Y' across the anti-diagonal. For example, if x=3,

 Y = [1 2 3;
      2 3 2;
      3 2 1]

If x=4,

 Y = [1 2 3 4;
      2 3 4 3;
      3 4 3 2;
      4 3 2 1]

Solution Stats

470 Solutions

225 Solvers

Last Solution submitted on Jun 08, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers225

Suggested Problems

More from this Author10

Problem Tags

Community Treasure Hunt

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

Start Hunting!