Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4 0 points ) Write a Matlab program which simulates the SZR model for initial condi - tions S 0 = 1 9 0 ,
points Write a Matlab program which simulates the SZR model for initial condi
tions
S Z
and parameters
beta kappa
given in units of days The total simulation time should be days. Curves for
St Zt and Rt should all be shown on the same plot, and should be clearly labeled,
for example by using the legend command.
As part of a zip file for this final project, please submit a file called szrm for the main
program, and a file called szrfm for the function which encodes the righthand side of
the SZR model, and which is called by the Matlab function ode in the main program.
b points It is shown in that if beta kappa the zombies always win S as t infty
for all initial conditions S and Z On the other hand, if beta kappa it is possible that either
the humans or the zombies could win, depending on the initial conditions.
Lets consider beta and kappa and suppose that S Z where S
could be as high as or as low as Write a Matlab program which determines the
smallest integer value that S can take for which St As a hint, start with
S and Z and run the simulation. Is St If not, try S and
Z Is St If not, try S and Z etc. Eventually youll find
the smallest integer value of S for which St ; your program should determine
and output this value.
As part of a zip file for this final project, please submit your file szricm which
solves this problem. This should call your function szrf from a
c points While the results of the simulations of the SZR model might seem depressing,
particularly when beta kappa there is another model called the Stochastic SZR StochSZR
model which, as well see, is more hopeful. Quoting this model suggests that even a
ferociously virulent zombie infestation might be killed early on by happy accident. Note
that you cant use a builtin Matlab solver for this, so youll have to write your own code
from scratch.
For the StochSZR model, the variables S Z and R again denote the number of
individuals in the Susceptible, Zombie, and Removed groups, respectively, but they only
take nonnegative integer values. There are two possible transitions:
Susceptible Zombie beta SZ
Zombie Zombie,
Susceptible Zombie kappa SZ
Susceptible Removed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started