Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi Please help my question. Thank you very much. (Need to use matlab) Determine what starting population is needed to start an epidemic. What you

Hi Please help my question.

Thank you very much.

(Need to use matlab)

image text in transcribed

Determine what starting population is needed to start an epidemic. What you need: A function that is positive when the starting population is big enough, negative when it isn't. If you look at the infected plots, the starting slope of the red line (no epidemic) is negative, while all of the others are positive. functi on [fzer o Val ue] = FindEpidermic(SStart, I Start, a b) The slope at the start can be found by taking one time step (f(x + h) - f(x))/h. Use DiseaseStep (or DiseaseSimulate) to calculate f(x) and f(x + h) for the infected value after one time step. To do: Write the FindEpidemic function above. Use FindEpidemic and fzero to find the zero location. Plot the function (leftmost window in self-check) to check it Print out the actual starting non-infected population value. Implementation fzero takes one parameter. Use an anonymous function to bind IStart, a, and b and let s vary. Use your guess from problem 5 as the starting value for fzero. See how the number of susceptible people needed changes as you vary a and b: Initial infected population (20-200), a (2 - 10), and b (0.5 - 2). Use 10 as your starting value for fzero;its a bit finicky and you may get NaN answers otherwise. Determine what starting population is needed to start an epidemic. What you need: A function that is positive when the starting population is big enough, negative when it isn't. If you look at the infected plots, the starting slope of the red line (no epidemic) is negative, while all of the others are positive. functi on [fzer o Val ue] = FindEpidermic(SStart, I Start, a b) The slope at the start can be found by taking one time step (f(x + h) - f(x))/h. Use DiseaseStep (or DiseaseSimulate) to calculate f(x) and f(x + h) for the infected value after one time step. To do: Write the FindEpidemic function above. Use FindEpidemic and fzero to find the zero location. Plot the function (leftmost window in self-check) to check it Print out the actual starting non-infected population value. Implementation fzero takes one parameter. Use an anonymous function to bind IStart, a, and b and let s vary. Use your guess from problem 5 as the starting value for fzero. See how the number of susceptible people needed changes as you vary a and b: Initial infected population (20-200), a (2 - 10), and b (0.5 - 2). Use 10 as your starting value for fzero;its a bit finicky and you may get NaN answers otherwise

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

Aware of differences in the role of employees unions.

Answered: 1 week ago

Question

Linux is an example of often used for web servers

Answered: 1 week ago

Question

What is paper chromatography?

Answered: 1 week ago

Question

Explain the cost of capital.

Answered: 1 week ago

Question

Define capital structure.

Answered: 1 week ago

Question

Explain the key areas in which service employees need training.

Answered: 1 week ago

Question

Understand the role of internal marketing and communications.

Answered: 1 week ago