solution of coupled first order odes numerically
1 回表示 (過去 30 日間)
古いコメントを表示
eqn1 = coeff1*var1 + coeff2*diff(var1) + coeff3*var2 +coeff4*diff(var2) == 0;
eqn2 = coeff5*var1 + coeff6*diff(var1) + coeff7*var2 +coeff8*diff(var2) == 0;
bc1 = var1(0) == const1
bc2 = var2(0) == const2
i have all the coeffs defined as function handles. dsolve doesnt give solution as no explicit solution is present. How do i solve them numerically?
This can be easily done in Mathematica with NDSolve. However, i cant seem to think how i can appl oe45 or whatever is needed.
0 件のコメント
採用された回答
Torsten
2018 年 6 月 21 日
Use the mass matrix option of the ODE solvers.
Or explicitly solve your equations for diff(var1) and diff(var2) (2 linear equations in 2 unknowns).
Best wishes
Torsten.
その他の回答 (0 件)
参考
カテゴリ
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!