Look Section 4.4 in my book "An Introduction to Computational Physics."
Section 11.5 shows how to solve such problem with Mathematica and you
should be able to find the same functions used there in MATLAB aw well.
Good luck. Tao Pang
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|