repmat {matlab} | R Documentation |
Replicate and tile a matrix.
repmat(A, m, n = if (length(m) == 1)m)
A |
numeric vector or matrix to be tiled |
n, m |
numeric dimensions for the result |
Returns matrix with value A
tiled to the number of dimensions specified.
Defaults to square if second dimension argument n
not provided.
P. Roebuck, roebuck@mdanderson.org
repmat(1, 3) # same as ones(3) repmat(matrix(1:4, 2, 2), 3)