powered by
repmat(A, m, n = if (length(m) == 1)m)
matrix
A
n
repmat(1, 3) # same as ones(3) repmat(matrix(1:4, 2, 2), 3)
Run the code above in your browser using DataLab