Create n x 2n "mirror" matrix of this type:

Examples

For n = 2

 m = [ 1 2 2 1
       1 2 2 1 ]

For n = 3

 m = [ 1 2 3 3 2 1
       1 2 3 3 2 1
       1 2 3 3 2 1 ]

Solution Stats

1420 Solutions

691 Solvers

Last Solution submitted on Mar 02, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers691

Suggested Problems

More from this Author9

Community Treasure Hunt

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

Start Hunting!