ode15s
- :
[t, y] =ode15s(fcn, trange, y0)¶ - :
[t, y] =ode15s(fcn, trange, y0, ode_opt)¶ - :
[t, y, te, ye, ie] =ode15s(…)¶ - :
solution =ode15s(…)¶ Integrate a stiff equation
y' = f(t,y), or an index-1 mass-matrix systemM(t,y) y' = f(t,y), with a variable-order BDF method (orders 1 to 5). The preferred backend is the SUNDIALS IDA builtin__ode15__; when that is unavailable the pure-M BDF engine used byode15iis used instead (still stiff-capable, including Mass and Jacobian). Only as a last resort for unit-mass ODEs isode45used.fcn is a function handle or a function name. trange is a strictly monotonic vector of at least two times. y0 is the state at
trange(1); a row is accepted. ode_opt comes fromodeset. The mass matrix and Jacobian may be constant (dense or sparse) matrices or functions. A single output is a structure with fieldssolver,extdata,xandy, plusxe,yeandiewhen an event function is set.