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

114 correct solutions 49 incorrect solutions
Last solution submitted on Jul 23, 2014