solving an ODE with a constraint equation
Mostrar comentarios más antiguos
Hi all,
I wondered if there is a numerical solver in MATLAB that can be used to solve this ODE with a constraint:
dy/dx = a/x;
y(0) = 0;
"y" is a function of "x", and "a" is an unknow constant that also needs to be solved.
It seems that this is a combination of ODE and an nonlinear equation, and is there any way that I can solve both simutaneously? Thank you.
1 comentario
Tong Bo
el 1 de Abr. de 2022
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 1 de Abr. de 2022
0 votos
Typically this would be solved as a Boundary Value Problem, such as bvp4c() or bvp5c()
1 comentario
Tong Bo
el 1 de Abr. de 2022
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!