repmat repeats a matrix
repmat(a, n, m)
a
the base matrix
n
number of repetition in lines
m
number of repetition in columns
a matrix with n repeats of a in lines et m in columns