Syntax: @vec(o)

Argument: matrix, sym, o

Return: vector

Creates a vector from the columns of the given matrix stacked one on top of each other. The vector will have the same number of elements as the source matrix. Example:

matrix m1 = @mrnd(10, 3)

vector v1 = @vec(m1)

creates a matrix of uniform random numbers M1 and stacks it in a 30 element vector V1.

See also @unvec.