Second Order Differential Equation with boundary conditions not at zero
Show older comments
I have a differential equation of the form
y'' = C/(1-y)
where C is a constant
and the conditions y(0) = .5 and y(1) = 0
I need to be able to plot y between 0 and 1 for different values of C. The problem I'm running into is that it seems like all the diff eq solvers matlab has take the initial conditions in the form of y(0) = x1, y'(0) = x2... etc, and I cannot figure out how to give two conditions (one of which is not at zero) on y and none on y' or y''. Thanks in advance.
Answers (1)
Sean de Wolski
on 25 Oct 2011
Sounds like you want bvp4c
doc bvp4c
Categories
Find more on Assumptions 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!