%% Repeat Matrix Elements
% Create a matrix and repeat each element into a 3-by-2 block of a new matrix.

A = [1 2; 3 4]

%

B = repelem(A,3,2)

% Copyright 2015 The MathWorks, Inc.