MATLAB solving BVP using bvp4c, variable coefficient
조회 수: 4 (최근 30일)
이전 댓글 표시
Say I have an bvp that involve the equation below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206847/image.png)
If I was to have enough boundary conditions to satisfy
ODE, would it be possible to solve the
equation simultaneously in order to get a solution for the
equation?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206848/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206849/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206850/image.png)
Ideally
would be a constant coefficient, but as seen with the solutions I am currently getting I'm wondering if the physics involving the currently considered constant coefficient equation
describes the physics incorrectly. I would like to see how the now variable coefficient "
" changes in order to get the
to fit my boundary conditions.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206851/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206852/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206853/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206854/image.png)
Any information or examples would be greatly appreicated!
댓글 수: 0
답변 (1개)
Torsten
2019년 3월 5일
If you make the ansatz
f ( r ) = a0 + a1*r + a2*r^2 + ...+ an *r^n
you will need (n+1) additional boundary conditions to fix the coefficients ai.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!