B = repmat(A,m,n)
B = repmat(A,[m n])
将A矩阵看作元素,复制组成m行n列,即将A复制m*n个
>> A = [1,2;3,4]
A =
>> B = repmat(A,2,3)
B =