REPMAT Rreplicate and tile an array.
B = repmat(A,M,N) creates a large matrix B consisting of an M-by-N tiling of copies of A.
REPMAT(A,M,N) when A is a scalar is commonly used to produce an M-by-N matrix filled with A's value.