How can I solve a system of ODEs with boundary conditions

23 views (last 30 days)
Hi, I am trying to solve a system of boundary value problem. I have problems in writing the code and running the program.
Briefly, I have 3 equations to solve:
Where k(C) is a known function depends on C.
with the following BCs:
I converted them to first order system in order to put it in matlab.
Where, I let
so the resulting system is:
with BCs:
Thank you in advance!

Accepted Answer

Stephan
Stephan on 14 Jul 2019
  6 Comments
Elia Paini
Elia Paini on 28 Apr 2021
Edited: Elia Paini on 28 Apr 2021
@Simone Paganelli Why did you put in solinit, as second vector, [0,0,0,1,1,1]?
I'm solving a similar system in spherical coordinates, but I don't know how the second vector must be inserted.
Thank you!

Sign in to comment.

More Answers (0)

Products


Release

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!