B = repmat(A, m, n)
%将矩阵A复制m*n块,即将矩阵A复制成m行,n列
eg:
A= [1,2,3]
B = repmat(A,2,3)
B = [1 2 3 1 2 3 1 2 3
1 2 3 1 2 3 1 2 3]
B = repmat(A, m, n)
%将矩阵A复制m*n块,即将矩阵A复制成m行,n列
eg:
A= [1,2,3]
B = repmat(A,2,3)
B = [1 2 3 1 2 3 1 2 3
1 2 3 1 2 3 1 2 3]