  nlleastsq
  Builtin Function



      SSyynnooppssiiss
        Solve systems of nonlinear equations (nonlinear least squares)

      SSyynnttaaxx
        nlleastsq ( _f_e_v_a_l, _n_e_q, _g_u_e_s_s )

      DDeessccrriippttiioonn
        nlleastsq is a high level interface to the MINPACK function:
        LMDIF1. nlleastsq is only availble as a builtin function if your
        Rlab installation was compiled with MINPACK enabled, and you
        have the MINPACK library installed on your system. From the
        MINAPCK documentation:


          The purpose of lmdif1 is to minimize the sum of the
          squares of m nonlinear functions in n variables by a mod-
          ification of the levenberg-marquardt algorithm. this is
          done by using the more general least-squares solver
          lmdif. the user must provide a subroutine which calcu-
          lates the functions. the jacobian is then calculated by a
          forward-difference approximation.



     The arguments to ode are:


        _f_e_v_a_l
           The user-supplied function which calculates the functions,
           and returns a vector of the solution.



             feval = function ( m, n, x, fvec, iflag )
             {
               /* Do something */
               return fvec;
             };





        _n_e_q
           The number of equations.


        _g_u_e_s_s
           The initial guess at the solution.












