Replacing Variable in an ODE
古いコメントを表示
syms T(t)
ode = diff(T,t) == (Lemda-(Sigma.*T));
cond = T(0) == To;
Solution = dsolve(ode, cond)
ERRORS; (Not replacing with a variable)
Undefined function or variable 'Lemda'.
Error in Project (line 11)
ode = diff(T,t) == (Lemda-(Sigma.*T));
4 件のコメント
SALAH ALRABEEI
2021 年 6 月 13 日
編集済み: SALAH ALRABEEI
2021 年 6 月 13 日
Are Lamda and sigma constants or vaiables!
Walter Roberson
2021 年 6 月 13 日
It does not matter. dsolve() is for symbolic expressions, so we can create symbolic variables without caring about whether they will later be constants or later will be changed.
Fahad Ramzan
2021 年 6 月 13 日
SALAH ALRABEEI
2021 年 6 月 13 日
Thanks Walter.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

