Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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