FUNCTION REFERENCE

bvp5c

Solve boundary value problems (4-stage Lobatto IIIa collocation).

Solve boundary value problems (4-stage Lobatto IIIa collocation).

Syntax

sol = bvp5c(@odefun, @bcfun, solinit)

Syntax

sol = bvp5c(@odefun, @bcfun, solinit, options)

The four-stage Lobatto IIIA method of Kierzenka and Shampine (2008, sections 2–3)

collocates a quartic at the four Lobatto points of each interval. Damped Newton

iterations solve for mesh values, interior stages and any unknown parameters.

The mesh is refined using the sampled ODE residual multiplied by interval length

and scaled relative to local solution magnitudes with RelTol and AbsTol. This

controls the error asymptotically for smooth, well-conditioned problems. sol has

fields solver, x, y, idata, parameters (if any) and stats (maxerr, the scaled

residual estimate); deval evaluates the quartic and its derivative.

Example

sol = bvp5c(@(x,y) [y(2); -y(1)], @(a,b) [a(1); b(1)-1], bvpinit(linspace(0,pi/2,5), [0 0])); deval(sol, 1)   % [0.8415; 0.5403]

Differences from MATLAB: mesh selection, stopping tests, error estimates, values

and evaluation counts can differ. The dense solve has the same 3000-unknown

limit as bvp4c, including interior stages. Multipoint problems and SingularTerm

are not supported.

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