Replace a variable in differential equation with 0

4 views (last 30 days)
I want to reduce this equation by having beta = 0. so that the terms having beta get removed.
((Lemda-((SigmaT(t)).*T))-BetaV(t).*T(t))

Accepted Answer

Walter Roberson
Walter Roberson on 13 Jun 2021
syms T(t) SigmaT(t) BetaV(t) Lemda To
ode = diff(T,t) == ((Lemda-((SigmaT(t)).*T))-BetaV(t).*T(t))
ode(t) = 
cond = T(0) == To;
zerofun(t) = sym(0)
zerofun(t) = 
0
modified_ode = subs(ode, BetaV, zerofun)
modified_ode(t) = 
Solution = dsolve(modified_ode, cond)
Solution = 
  2 Comments
Fahad Ramzan
Fahad Ramzan on 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
Walter Roberson
Walter Roberson on 13 Jun 2021
Sorry, I am having difficulty reading the image in places, and some of the pieces I think maybe I can read, do not make sense mathematically.

Sign in to comment.

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!