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, 22.06.2019 00:40
Write a function 'music_func' that takes 3 parameters -- music type, music group, vocalist -- and prints them all out as shown in the example below. in case no input is provided by the user, the function should assume these values for the parameters: "classic rock", "the beatles", "freddie mercury". for example: input: alternative rock,pearl jam,chris cornell output: the best kind of music is alternative rock the best music group is pearl jam the best lead vocalist is chris cornell note: the print statements will go inside the for example: print("the best kind of music is"
Answers: 2
question
Computers and Technology, 22.06.2019 04:00
Chloe is building a kiosk-based excel application. she wants to make some modifications to the screen elements in order to keep users from being distracted by parts of the application that are irrelevant to her application. she turns to henry for guidance as she knows he built a similar solution earlier this year.chloe has decided to hide the worksheet gridlines and the vertical scroll bar. what does henry tell her to use to do this? a) screen elements dialog boxb) display options dialog boxc) customization dialog boxd) excel options dialog box
Answers: 2
question
Computers and Technology, 22.06.2019 07:00
Our primary purpouse as electricians is to do wich of the following core concepts? a: install electrical components in a way they can be upgraded b: install electrical equiptment in a way that reduces heat c: install electrical systems in a safe manner d: only b and c
Answers: 1
question
Computers and Technology, 22.06.2019 13:50
The instruction ishl (shift left integer) exists in jvm but not in ijvm. it uses the top two values on the stack, replacing the two with a single value, the result. the sec- ond-from-top word of the stack is the operand to be shifted. its content is shifted left by a value between 0 and 31, inclusive, depending on the value of the 5 least signifi- cant bits of the top word on the stack (the other 27 bits of the top word are ignored). zeros are shifted in from the right for as many bits as the shift count. the opcode for ishl is 120 (0x78).a. what is the arithmetic operation equivalent to shifting left with a count of 2? b. extend the microcode to include this instruction as a part of ijv.
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
Mathematics, 08.12.2019 22:31
Questions on the website: 13722367