%% Repeat Matrix Columns
% Create a matrix and copy its columns into a new array, repeating the first column twice and second column three times.

A = [1 2; 3 4]
B = repelem(A,1,[2 3])

% Copyright 2015 The MathWorks, Inc.