필터 지우기
필터 지우기

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 CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by