Operators and Keywords

Function List:


: v = vec (x)
: v = vec (x, dim)

Return the vector obtained by stacking the columns of the matrix x one above the other.

Without dim this is equivalent to x(:).

If dim is supplied, the dimensions of v are set to dim with all elements along the last dimension. This is equivalent to shiftdim (x(:), 1-dim).

See also: vech, resize, cat.

Package: octave