How to solve an ODE with a function symbolically?
58 ビュー (過去 30 日間)
古いコメントを表示
So I have this ODE to solve (26) with a set of conditions (27). I evaluated the conditions prior to going forward to solve the ODE. I want to solve it symbolically for each mk because I will use the results later on. I wrote a function file for dmk/dt, and then in a loop I want to solve for each mk and save the function. However I am not sure if I am able to save all the functions in a matrix. Moreover, when I input the initial conditions while using ode45, I get an error. This is the code in the loop:
[t,m]=ode45('mp',[0,10],m0val(x));
where m0val(x) contains the values for the initial conditions.
3 件のコメント
Karan Gill
2017 年 10 月 17 日
Great! I copied my comment to an Answer. If this was what you wanted, could you accept the Answer?
回答 (1 件)
Karan Gill
2017 年 10 月 17 日
You could start with the existing doc on solving ODEs symbolically:
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!