FUNCTION REFERENCE
repelem
Repeat individual array elements.
Repeat individual array elements.
Syntax
B = repelem(A, R) or repelem(A, R1, R2)The two-input form repeats each vector element. The three-input form repeats rows and columns; each repetition factor can be a scalar or a vector matching its dimension. Numeric classes, logical, character and cell values retain their class.
Example
repelem([1 2 3], [1 0 2]) % [1 3 3]Differences from MATLAB: More than two dimensions and handle arrays are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.