<< rem Elementary functions reshape >>

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 argument


A

an array.

m, n, p …

a value: integer

Output argument


R

result array form by tiling.

Description


repmat repeats matrix or N-D array.

Examples


repmat(1:5, 2)

repmat(1:5, [2 3])

repmat(1:5, [2 3 4])

See also


reshape.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< rem Elementary functions reshape >>