Grocer Function

NAME

eq2xcol - Transformation of a system of equations into a matrix vector

CALLING SEQUENCE

[x,boundsvarb,prests]=eq2xcol(grocer_a,listeq)

PARAMETERS

Input

Output

DESCRIPTION

Transforms a list of strings into the column vector equal to the evaluation of the list of equations contained in grocer_listeq at point grocer_a. The coefficients must be named grocer_a(i) in the equations. Used in function explosys.

EXAMPLE

1) [grocer_x,grocer_boundsvarb,grocer_prests]=eq2xcol(ones(grocer_ncoef,1),grocer_listeq)
2) x=-numz0(eq2xcol,ones(grocer_ncoef,1),grocer_ncoef,ones(grocer_ncoef,grocer_totalnobs),1,grocer_listeq)'

These two examples are taken from explosys. The main interest is in example 2: eq2xcol is given as an entry in function numz0 in order to calculate the x matrix as the first derivative of the vector of equations with respect to the coefficients: it is evaluated at vector ones(grocer_ncoef,1).

AUTHOR

Eric Dubois 2002