For those of us who like to provide our own partial derivative sensitivity matrix. Can be used for both linear and non-linear systems.
x = nrsolve( F, dFdx, xi, tol, max_iter, c1, c2.... )
Given a system of equations F = {F1;F2;...}, defined sensitivity matrix dFdx (matlab functions allowed), and initial guess vector xi, nrsolve provides a solution vector x. Optional input constants c1, c2, etc. allow for passing variables into functions within F and dFdx.
See testnrsolve for more details.
Comments and debugging are highly appreciated. |