Question
Create a function that projects population based on static: Birth Rate (BR) Death Rate (DR) Migration will be represented as a pulse function starting at
Create a function that projects population based on static:
Birth Rate (BR)
Death Rate (DR)
Migration will be represented as a pulse function starting at timestartM, ending at timeEndM and having magnitude Mann.
A template for the function has been provided. Please do not change variable names as this will result in an incorrect answer.
CASE 2
function [P,M]= popDynamics_2_fcn( BR,DR,tinit,tfinal,delt,Pinit,Mann,timeStartM,timeEndM )
% -------------------------------------------------------------------------
% Case 2. M(t) is a rectangular pulse. Find P(t) history.
% SETUP
% tinit,tfinal,delt time initial, final, & timestep
% BR, birth rate
% DR, death rate
% Pinit, initial population level
% Mann, annual rate of migration (+:immigration, -:emigration)
% timeStartM, time at which migration begins
% timeEndM, time at wich migration stops
% RESULTS
% P, population history
% M, migration history
Create a function that projects population based on static: - Birth Rate (BR) - Death Rate (DR) Migration will be represented as a pulse function starting at timestartM, ending at timeEndM and having magnitude Mann. A template for the function has been provided. Please do not change variable names as this will result in an incorrect answer. Function 3 Code to call your function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started