subject

Zombie attack. Zombies are attacking a population of humans. In this pop- ulation, people are born naturally at a rate u and die naturally at a rate 8. As the human population defends against the zombies, people kill zombies at a rate 7. In turn, zombies bite people and turn them into zombies at a rate 8 (all rates are per day). Given that the ordinary differential equations for the population of humans (given by P) and the population of zombies (given by Z) are dP = P - BPZ - SP, (1) dt dᏃ -PZ + SPZ, dt (2) write a function named zombie. m that takes as input t (time) and X = [*;*] (column vector of populations) and returns the right-hand side of the ODE system given by Eqs. (1)-(2). Next, write a script, named zombie_main. m that simulates (i. e., solves the ODEs) the following battle scenarios: β€’ Battle 1: 50 zombies vs. 1,000 humans, for tmax = 28 days, with p = 0.010, 8 = 0.001, B = 0.002 and 7 = 0.0015. β€’ Battle 2: 50 zombies vs. 1,000 humans, for tmax = 28 days, with p = 0.010, 8 = 0.001, B = 0.002 and 9 = 0.0019 β€’ Battle 3: 50 zombies vs. 1,000 humans, for tmax = 28 days, with u = 0.010, 8 = 0.001, B = 0.002 and 9 = 0.0022 (Higher y values correspond to humans killing zombies at a higher rate). Notice that you must call the function ode45() for each battle (i. e., three times). Still inside your script zombie_main. m, plot the resulting curves of the two populations (zombies and humans) over the time interval of 28 days for each battle, and include a legend (to identify which curve is P and which is Z). Use one figure per battle.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Text or graphics that print at the bottom of every page are called footings footers headers headings
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
Telling a computer that is already on to turn again is known as what type of boot?
Answers: 1
You know the right answer?
Zombie attack. Zombies are attacking a population of humans. In this pop- ulation, people are born n...
Questions
question
Advanced Placement (AP), 13.07.2019 14:30
question
Mathematics, 13.07.2019 14:30
question
Mathematics, 13.07.2019 14:30
Questions on the website: 13722363