Skip to content

repmat

general · scripts/general/repmat.m

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

Build a block array by tiling copies of A.

A single scalar count n means n copies in each of the first two dimensions. Several arguments must each be an integer scalar. One row vector of integer counts is the factor along each dimension. A negative count is an empty dimension. The class of A is kept.