repmat | R Documentation |
Create a big matrix by tiling given matrix m*n
times in a
rectangular grid. repmat
resembles the matlab function
of the same name.
repmat(x, m, n)
x |
a matrix |
m |
number of repetitions in dimension 1 (row multiply factor) |
n |
number of repetitions in dimension 2 (column multiply factor) |
A matrix of size '(m*r) x
(n*c)', where 'r' ('c') represent
the number of rows (columns) of 'x'.
Tomas Sieger
x<-matrix(1:6,2)
x
repmat(x,2,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.