Question: Please help, post and explain code. Create a function that projects population based on static: Birth Rate (BR) Death Rate (DR) Annual Migration (Mann) A

Please help, post and explain code. Create a function that projects populationbased on static: Birth Rate (BR) Death Rate (DR) Annual Migration (Mann)Please help, post and explain code.

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 Res 5 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 tinit,tfinal, delt: time period of interest; delt, step size % 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 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 Res 5 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 tinit,tfinal, delt: time period of interest; delt, step size % 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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!