bvp4c
Solve boundary value problems with fourth-order collocation.
📝Syntax
sol = bvp4c(odefun, bcfun, solinit)
sol = bvp4c(odefun, bcfun, solinit, options)
📄Description

bvp4c solves first-order boundary value problems from an initial mesh and guess produced by bvpinit.

Item Details
Problem form First-order system y' = f(x,y) with boundary residuals bcfun(ya,yb).
Initialization bvpinit supplies the initial mesh, solution guess, and optional unknown parameters.
Method Fourth-order collocation.
Solution sol structure with x, y, yp, parameters, and stats.

Options created with bvpset can provide FJacobian, BCJacobian, Vectorized, and SingularTerm. When both Jacobian callbacks are supplied, the Newton iteration uses them instead of finite differences. Solution stats include niterations, nmeshpoints, residualNorm, residualRms, nrefinements, maxDefect, rmsDefect, and, when available, nfevals.

💡Examples
Complete DDE and BVP added features example.
rootPath = modulepath('ode_solvers', 'root');
run([rootPath, '/examples/dde_bvp_added_features_example.m'])
🔗See Also
bvp5cbvpinitbvpset
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub