<< vec Basic functions vec2row >>

Grocer >> Basic functions > vec2col

vec2col

vector into column vector

CALLING SEQUENCE

[x]=vec2col(x)

PARAMETERS

Input

* x = (1 x n) or (n x 1) vector

 

Output

* x = (n x 1) vector

DESCRIPTION

Transforms a row or col vector into a col vector.

EXAMPLE

vec2col([3:7])
vec2col([3:7]')
// both command return:
//!   3. !
//!   4. !
//!   5. !
//!   6. !
//!   7. !
 
grocer_init=vec2col(grocer_init)
// Example taken from nls: transforms into a column vector the vector of starting values for the optimisation algorithm. This allows the user to give either a column or a row vector and therefore facilitates her life.

AUTHOR

Eric Dubois 2002

Report an issue
<< vec Basic functions vec2row >>