R = repmat(A, m)
R = repmat(A, m, n)
R = repmat(A, m, n, p …)
R = repmat(A, [m n])
R = repmat(A, [m n p …])
| Parameter | Description |
|---|---|
| A | an array. |
| m, n, p … | a value: integer |
| Parameter | Description |
|---|---|
| R | result array form by tiling. |
repmat replicates and tiles an array.
If any resulting dimension is zero, the output is empty. The other dimensions and the input class are preserved. For example, repmat(zeros(0, 3), 2, 4) has size [0, 12].
repmat(1:5, 2)
repmat(1:5, [2 3])
repmat(1:5, [2 3 4])
| Version | Description |
|---|---|
| 1.0.0 | initial version |