"mirror" matrix - MATLAB Cody - MATLAB Central

Problem 943. "mirror" matrix

Difficulty:Rate

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

54.14% Correct | 45.86% Incorrect
Last Solution submitted on May 06, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers650

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!