Replacing Variable in an ODE

3 Ansichten (letzte 30 Tage)
Fahad Ramzan
Fahad Ramzan am 13 Jun. 2021
Kommentiert: SALAH ALRABEEI am 13 Jun. 2021
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 Kommentare
Fahad Ramzan
Fahad Ramzan am 13 Jun. 2021
Yeah!
SALAH ALRABEEI
SALAH ALRABEEI am 13 Jun. 2021
Thanks Walter.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Jun. 2021
syms T(t) Lemda Sigma To
ode = diff(T,t) == (Lemda-(Sigma.*T));
cond = T(0) == To;
Solution = dsolve(ode, cond)
Solution = 
  1 Kommentar
Fahad Ramzan
Fahad Ramzan am 13 Jun. 2021
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by