Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use MATLAB to solve this problem. Create a function that projects population based on static: Birth Rate (BR) Death Rate (DR) Annual Migration (Mann)

image text in transcribedimage text in transcribedPlease use MATLAB to solve this problem.

Create a function that projects population based on static: Birth Rate (BR) Death Rate (DR) Annual Migration (Mann) A template for the function has been provided. Please do not change variable names as this will result in an incorrect answer. Function C Reset DI MATLAB Documentation 1 function [P]=popDynamics_1_fcn (BR, DR, tinit,tfinal, delt, Pinit, Mann) 2 % 3 % Case 1. M(t) is constant. Find P(t) history. 4 % SETUP 5 % tinit,tfinal, delt: time period of interest; delt, step size 6% BR, birth rate 7% DR, death rate 8% Mann, annual rate of migration (+: immigration, -: emigration) 9% Pinit, initial population level 10 % RESULTS 11 % P, population history 12 % 13 % find nsteps and set up output data 14 15 16 end Code to call your function C Reset 1 BR=. 15; 2 DR=.09; 3 tinit=0; 4 tfinal=100; 5 delt=1; 6 Pinit=400; 7 Mann=-10; 8 9 [P]=popDynamics_1_fcn (BR, DR, tinit,tfinal, delt, Pinit,Mann); 10 trtinit:delt:tfinal; 11 12 plot(t,P) Create a function that projects population based on static: Birth Rate (BR) Death Rate (DR) Annual Migration (Mann) A template for the function has been provided. Please do not change variable names as this will result in an incorrect answer. Function C Reset DI MATLAB Documentation 1 function [P]=popDynamics_1_fcn (BR, DR, tinit,tfinal, delt, Pinit, Mann) 2 % 3 % Case 1. M(t) is constant. Find P(t) history. 4 % SETUP 5 % tinit,tfinal, delt: time period of interest; delt, step size 6% BR, birth rate 7% DR, death rate 8% Mann, annual rate of migration (+: immigration, -: emigration) 9% Pinit, initial population level 10 % RESULTS 11 % P, population history 12 % 13 % find nsteps and set up output data 14 15 16 end Code to call your function C Reset 1 BR=. 15; 2 DR=.09; 3 tinit=0; 4 tfinal=100; 5 delt=1; 6 Pinit=400; 7 Mann=-10; 8 9 [P]=popDynamics_1_fcn (BR, DR, tinit,tfinal, delt, Pinit,Mann); 10 trtinit:delt:tfinal; 11 12 plot(t,P)

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

Students also viewed these Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 1 week ago