Solve differential equation from Matlab
古いコメントを表示
Hello guys,
I want to ask about, how to solve the differential equation in MATLAB for the equation:
dx/dt = (ka*C(xmax-x)-kd*x)/(1+ka*x)
thx
3 件のコメント
Jan
2022 年 5 月 27 日
You solve this using an integration. Do you want to solve this numerically (as initial value problem) or symbolically (hoping that there is a closed form equation for the integral)?
Sabella Huang
2022 年 5 月 27 日
John D'Errico
2022 年 5 月 27 日
Are ka and kd constants, or is k separate from a and d, so there are three unknown constants. Is xmax known? Is it a value that x may not exceed? Is C a function? Or is C just a known constant?
When you are too vague, you make it impossible for people to help you.
採用された回答
その他の回答 (1 件)
Bjorn Gustavsson
2022 年 5 月 27 日
0 投票
For a numerical integration of this ODE look at the help and documentation for ode45 and its siblings, also look at the examples and demos related to these ODE-solvers, you find these in odeexamples. That is perhaps the best way to get started (maybe it will not make you an expert in DE in general, but it will get you going.) You can also read the code of the different demos and adapt them to suit your problem.
For an analytical solution you might have success with dsolve from the symbolic toolbox if you have access to that.
HTH
カテゴリ
ヘルプ センター および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
