two point boundary vale problem
1 view (last 30 days)
Show older comments
I have a problem asking me to solve a second order diffrential equation of the form;
-u"(x)+x^2u(x)=f(x), 0<x<1 subject to u(0)=0 and u(1)=0
i have to create a function file which implements a function y=e^(-x^4) cos(20x)
and another function file with first line of the form;
function [ x,U ] = centraldiff(n,f) with inputs n is such that n+1 is the number of divions of [0,1] and the second input is a string which gives the name of a function describing the function.
i will be extremly thankful for any help, as i have noclue to this lab question.
thankyou
0 Comments
Answers (1)
Sarah Wait Zaranek
on 14 Mar 2011
The function bvp4c should be able to get you started.
There are some nice examples in the documentation for bvp4c that should help you out. http://www.mathworks.com/access/helpdesk/help/techdoc/ref/bvp4c.html
0 Comments
See Also
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!