repmat
Replicate and tile an array.
📝Syntax
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 …])
📥Input Arguments
Parameter Description
A an array.
m, n, p … a value: integer
📤Output Arguments
Parameter Description
R result array form by tiling.
📄Description

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].

💡Examples
repmat(1:5, 2)
repmat(1:5, [2 3])
repmat(1:5, [2 3 4])
🔗See Also
reshape
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub