Problem 51216. Apply mirrored edges to a matrix

Given a matrix MTX of any size and an integer N, apply mirrored edges of size N to the matrix.
e.g.
MTX = [ 1 2 3
4 5 6
7 8 9];
N = 1;
OUT = [ 1 1 2 3 3
1 1 2 3 3
4 4 5 6 6
7 7 8 9 9
7 7 8 9 9];

Solution Stats

44.44% Correct | 55.56% Incorrect
Last Solution submitted on Nov 06, 2022

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers4

Suggested Problems

More from this Author1

Community Treasure Hunt

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

Start Hunting!