Tutorial on solving BVPs with BVP4C
Updated 1 Sep 2016
This tutorial shows how to formulate, solve, and plot the solutions of boundary value problems (BVPs) for ordinary differential equations.
The tutorial introduces the function BVP4C (available in MATLAB 6.0 and later), briefly describes the numerical method used, and illustrates solving BVPs with several examples and exercises.
The M-files for all the examples and exercises in the tutorial are available in the directory BVP_examples.
The directory BVP_examples_65 contains the files for the examples and exercises, updated to take advantage of features available in MATLAB 6.5 (R13).
Correspondingly, BVP_examples_70 contains files modified for use with MATLAB 7.0 (R14).
More information about solving BVPs in MATLAB, can be found in the paper
Jacek Kierzenka, Lawrence F. Shampine,
A BVP Solver based on Residual Control and the MATLAB PSE,
ACM TOMS, Vol. 27 (2001), No. 3, pp. 299-316.
or in the book
L.F. Shampine, I. Gladwell, and S. Thompson,
Solving ODEs with MATLAB, Cambridge University Press, 2003.
Jacek Kierzenka (2023). Tutorial on solving BVPs with BVP4C (https://www.mathworks.com/matlabcentral/fileexchange/3819-tutorial-on-solving-bvps-with-bvp4c), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.