Question: using matlab Use the demographics equation derived in class to make a script which finds the population histories for each of 4 population groups. Migration
using matlab Use the demographics equation derived in class to make a script which finds the population histories for each of population groups. Migration into group will be defined by a pulse function.
SETUP:
parameters bddddttt where
b birth rate in group
di death rates in group Pi
tij, transition from group Pi to group Pj due to ageing
M rectangular migration pulse defined by ManntStartMtEndM
initial conditions PinitPinitPinitPinit
time data tinittfinal,delt
RESULTS follow conventions or an incorrect answer will result:
PPPP group time histories as row vectors
M M time history as a row vector Parameters
b;
d;
d;
d;
d;
t;
t;
t;
Migration effect M
Mann;
tStartM;
tEndM;
Initial conditions in s for convenience
Pinit;
Pinit;
Pinit;
Pinit;
Solution control data
tinit;
tfinal;
delt;
Your code goes here
DISPLAY RESULTS SECTION THIS SECTION WILL HELP YOU VISUALIZE YOUR RESULTS
figure
subplot
plottP:tP:'LineWidth',
titleDemographics : P P histories, in s
xlabelt years'
ylabelP P
legendPP
grid on subplot
plottP:tP:tP:tP::'LineWidth',
titleP P P P histories, in s
xlabelt years'
ylabelP P P P
legendPPPP
grid on
subplot
plottM'LineWidth',
titleMigration effect M in s
xlabelt years'
ylabelM
grid on
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
