repmat repeats a matrix

repmat(a, n, m)

Arguments

a

the base matrix

n

number of repetition in lines

m

number of repetition in columns

Value

a matrix with n repeats of a in lines et m in columns