EzyFit Function Reference | << Prev | Next >>

eq2ml
Convert a free parameter equation to a Matlab equation
Description `

    [EQML, PARAM] = eq2ml(EQ,XVAR) converts the free-parameter equation
    string EQ into a Matlab equation string for further evaluation with
    EVAL of FMINSEARCH, in which the free parameters are replaced by 'm(1)',
    'm(2)' (in alphabetical order) and the 'x' variable XVAR is replaced by
    'x__ref'. The names of the parameters are returned in the cell array
    PARAM. If XVAR is not specified, 'x' is taken by default. In addition,
    the equation string is 'vectorized' (i.e. '*', '/' and '^' are replaced
    by '.*', './', '.^').

    Example:  [eqml, param] = eq2ml('c+t_0/t','t')
       returns 'm(1)+m(2)./x__ref' and {'c','t_0'}

See Also

    fit, selectfit, showfit.

`

Previous: efmenu | Next: evalfit

2005-2006 EzyFit Toolbox 2.10