"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

53.98% Correct | 46.02% Incorrect
Last Solution submitted on Apr 04, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Group

MATLAB JOINT CODY EVENT 2024 Image
MATLAB JOINT CODY EVENT 2024
  • 20 Problems
  • 10 Finishers

Problem Recent Solvers643

Community Treasure Hunt

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

Start Hunting!
Go to top of page