Navigation

Operators and Keywords

Function List:

C++ API

: repmat (A, m)
: repmat (A, m, n)
: repmat (A, m, n, p …)
: repmat (A, [m n])
: repmat (A, [m n p …])

Repeat matrix or N-D array.

Form a block matrix of size m by n, with a copy of matrix A as each element.

If n is not specified, form an m by m block matrix. For copying along more than two dimensions, specify the number of times to copy across each dimension m, n, p, …, in a vector in the second argument.

See also: bsxfun, kron, repelems.

Package: octave