フィルターのクリア

Replacing Variable in an ODE

1 回表示 (過去 30 日間)
Fahad Ramzan
Fahad Ramzan 2021 年 6 月 13 日
コメント済み: SALAH ALRABEEI 2021 年 6 月 13 日
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 件のコメント
Fahad Ramzan
Fahad Ramzan 2021 年 6 月 13 日
Yeah!
SALAH ALRABEEI
SALAH ALRABEEI 2021 年 6 月 13 日
Thanks Walter.

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

採用された回答

Walter Roberson
Walter Roberson 2021 年 6 月 13 日
syms T(t) Lemda Sigma To
ode = diff(T,t) == (Lemda-(Sigma.*T));
cond = T(0) == To;
Solution = dsolve(ode, cond)
Solution = 
  1 件のコメント
Fahad Ramzan
Fahad Ramzan 2021 年 6 月 13 日
Are these answers the same? Because the solution goes this way where i made assumptions as following
%Assumptions
% Lemda = constant input source of uninfected cells per day
% Sigma = normal loss rate constant of uninfected cells
% Beta = infection rate constant of uninfected cells per infected cell
% Mu = loss rate constant of infected cells
% Gamma = loss rate constant of free virus
% N = number of virions produced per day per infected cell

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by