powered by
repmat(x, m, n)
x
m
nrow(x)
n
ncol(x)
repmat(1:3, 3, 2) # will have dimension 9 by 2 repmat(randn(2, 2), 3, 2)
Run the code above in your browser using DataLab