Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 943. "mirror" matrix

Created by Grzegorz Knor

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

e.g. for n = 2

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

e.g. for n = 3

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

Problem Group

Solution Statistics

112 correct solutions 48 incorrect solutions
Last solution submitted on Jul 12, 2014