Can someone help me solve this different equation on matlab?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone, I am trying to solve the following equation: 1/r * d/dr(r*dS/dr) + c1(S) - c2(S) = 0 I am trying to solve to find the value of “S”, r is the radius, and c1 and c2 are properties with values depending on S, how can I solve this on matlab? I tried using bvp4c but I probably put the wrong ode and wrong initial guesses so it wasn’t converging
0 件のコメント
回答 (1 件)
Star Strider
2024 年 2 月 18 日
Perhaps this —
% 1/r * d/dr(r*dS/dr) + c1 - c2
syms r S(r) c1 c2 S0 DS0
Eqn = 1/r * diff(r*diff(S),r) + c1 - c2
S = dsolve(Eqn, S(0) == S0)
.
6 件のコメント
Torsten
2024 年 2 月 18 日
It would be easiest if you include your attempt where you (unsuccessfully) used "bvp4c".
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!