Grocer Function
NAME
vec2col - vector into column vector
CALLING SEQUENCE
[x]=vec2col(x)
PARAMETERS
Input
-
x = (1 x n) or (n x 1) vector
Output
DESCRIPTION
Transforms a row or col vector into a col vector.
EXAMPLE
1) vec2col([3:7])
2) vec2col([3:7]')
3) grocer_init=vec2col(grocer_init)
Examples 1 and 2 give the matrix:
! 3. !
! 4. !
! 5. !
! 6. !
! 7. !
Example 3, 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