FUNCTION REFERENCE

decic

Compute consistent initial conditions for ode15i.

Compute consistent initial conditions for ode15i.

Syntax

[y0new, yp0new] = decic(@f, t0, y0, fixed_y0, yp0, fixed_yp0)

Syntax

[y0new, yp0new, resnrm] = decic(@f, t0, y0, fixed_y0, yp0, fixed_yp0, options)

Adjusts the components of y0 and yp0 whose fixed flags are 0 so that f(t0, y0, yp0) = 0,

by damped Newton iterations with finite-difference Jacobians. Singular value decomposition

gives minimum-norm corrections in the free components (Golub and Van Loan, Matrix

Computations, 2013, section 5.5). Fixed components remain unchanged; failure to reduce

the residual reports a convergence error. At most numel(y0) components may be fixed.

Example

[y0, yp0] = decic(@(t,y,yp) yp + y, 0, 1, 1, 0, 0)   % y0 = 1, yp0 = -1

Differences from MATLAB: nonlinear iteration paths, the chosen consistent solution and

the final residual can differ.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.