フィルターのクリア

How to solve a parametric differential equation in MATLAB

9 ビュー (過去 30 日間)
Faezeh Manesh
Faezeh Manesh 2020 年 5 月 3 日
コメント済み: Ameer Hamza 2020 年 5 月 4 日
Hello all,
I have a differential equation which is as follows:
I want to solve the above differential equation and find y(t) in terms of a and b.
I also have the following initial condition:
t=294 y=0

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 3 日
編集済み: Ameer Hamza 2020 年 5 月 3 日
You can use dsolve() if you have symbolic toolbox
syms y(t) a b
eq = diff(y) == a*exp(b/t)*(1-y);
ic = y(294) == 0;
sol = dsolve(eq, ic)
Result:
sol =
1 - exp(294*a*exp(b/294) - a*b*ei(b/294))*exp(a*b*ei(b/t) - a*t*exp(b/t))
Note that the output is given in term of an integral function ei(): https://www.mathworks.com/help/releases/R2020a/symbolic/ei.html
  2 件のコメント
Faezeh Manesh
Faezeh Manesh 2020 年 5 月 4 日
Thank you so much!
Ameer Hamza
Ameer Hamza 2020 年 5 月 4 日
I am glad to be of help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by