Solve second-order ODE with Robin boundary condition
Mostrar comentarios más antiguos
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 !
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
