powered by
Repeats a matrix over n columns and rows
repmat(mx, n)
matrix replicated over ncol(mx) * n columns and nrow(mx) * n rows
ncol(mx) * n
nrow(mx) * n
matrix
either a scalar with the number of replications in both rows and columns or a <= 3-length vector with individual repetitions.
This function was created to replicate the behavior of a homonymous function on Matlab
x <- matrix(1:4, 2) repmat(x, 1) repmat(x, 2) repmat(x, c(2, 3))
Run the code above in your browser using DataLab