repmat

Type: External

Group: matrix

Syntax

matrix = repmat(matrix to copy, no of rows, no of columns)

Description

Copies part of a matrix.

Examples

repmat([1,2,3;4,5,6;7,8,9], 2, 2) = [1,2;4,5]

See Also

reshape