reshape

Type: External

Group: matrix

Syntax

reshape(matrix to reshape, no of rows, no of columns)

Description

Reshapes a matrix.

Examples

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

See Also

repmat