Does anybody know how to write a code in matlab for the attached differential equation using central finite difference method.
There are built in function to do this see the documentation at:
Solve boundary value problems for ordinary differential equations - MATLAB
CB