repmat

Repeat matrix

repmat(A, m)

• A should be an array. It duplicates and tiles A m times in every dimension of A. If m is zero, it returns an empty array.

repmat(A, s1, s2, ..., sn)

• A has n dimensions, and s1, s2, ..., sn are non-negative numbers. It duplicates and tiles A in the 1st, 2nd, ..., n-th dimensions s1, s2, ..., sn times, respectively. If any of s1, s2, ..., sn is zero, it returns an empty array.

repmat(A, s)

• A has n dimensions, and s is an array with non-negative elements s1, s2, ..., sn. It duplicates and tiles A in the 1st, 2nd, ..., n-th dimensions s1, s2, ..., sn times, respectively. If any of s1, s2, ..., sn is zero, it returns an empty array.