Module Library

COLVEC Function

converts a matrix into a column vector

COLVEC( matrix)

where matrix is any n x m matrix.

The COLVEC function returns an nm x 1 vector. It converts a matrix into a column vector in row-major order. The returned vector has 1 column and nm rows. The first m elements in the vector correspond to the first row of the input matrix, the next m elements correspond to the second row, and so on.

Previous Page | Next Page | Top of Page