FUNCTION REFERENCE
repmat
Repeat an array.
Repeat an array.
Syntax
repmat(A, n)Syntax
repmat(A, r, c)Syntax
repmat(A, [r c])repmat(A, n) tiles A n-by-n times.
Example
repmat([1 2], 2, 2) % [1 2 1 2; 1 2 1 2]Differences from MATLAB: Two-dimensional arrays only, including cell and struct arrays. Container results are limited to 65536 slots.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.