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 comentarios

SALAH ALRABEEI
SALAH ALRABEEI el 13 de Jun. de 2021
Editada: SALAH ALRABEEI el 13 de Jun. de 2021
Are Lamda and sigma constants or vaiables!
Walter Roberson
Walter Roberson el 13 de Jun. de 2021
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
Fahad Ramzan el 13 de Jun. de 2021
Yeah!
SALAH ALRABEEI
SALAH ALRABEEI el 13 de Jun. de 2021
Thanks Walter.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Jun. de 2021
syms T(t) Lemda Sigma To
ode = diff(T,t) == (Lemda-(Sigma.*T));
cond = T(0) == To;
Solution = dsolve(ode, cond)
Solution = 

1 comentario

Fahad Ramzan
Fahad Ramzan el 13 de Jun. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2017b

Preguntada:

el 13 de Jun. de 2021

Comentada:

el 13 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by