Solve second-order ODE with Robin boundary condition
7 views (last 30 days)
Show older comments
Hello,
I would like to solve the following ODE equation with boundary conditions. A,B,C and a,b are constants.
I already wrote the odefun as below :
function dy = odefun(x,y)
dy = zeros(2,1);
dy(1) = y(2);
dy(2) = (2/(x^2))*y(1)-(2/x)*y(2);
end
Afterwards, should I use ODE45 or dvp4c or another solver ? How can I apply boundary condtion to the solver ?
At the end, I want to plot dydx in y-axis versus x in x-axis. How can I deal with this ?
I'd appreciate your help !
0 Comments
Accepted Answer
More Answers (0)
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!