Compute consistent initial conditions for `ode15i`

- example
`[y0_new,yp0_new] = decic(odefun,t0,y0,fixed_y0,yp0,fixed_yp0)`

`[y0_new,yp0_new] = decic(odefun,t0,y0,fixed_y0,yp0,fixed_yp0,options)`

`[y0_new,yp0_new,resnrm] = decic(___)`

`[`

uses `y0_new`

,`yp0_new`

]
= decic(`odefun`

,`t0`

,`y0`

,`fixed_y0`

,`yp0`

,`fixed_yp0`

)`y0`

and `yp0`

as
guesses for the initial conditions of the fully implicit function `odefun`

,
holds the components specified by `fixed_y0`

and `fixed_yp0`

as
fixed, then computes values for the nonfixed components. The result
is a complete set of consistent initial conditions. The new values `yo_new`

and `yp0_new`

satisfy ```
odefun(t0,y0_new,yp0_new)
= 0
```

and are suitable to be used as initial conditions with `ode15i`

.

Was this topic helpful?