Question: using matlab Use the demographics equation derived in class to make a script which finds the population history for 4 population groups. Assume there is
using matlab Use the demographics equation derived in class to make a script which finds the population history for population groups. Assume there is no migration.
SETUP:
parameters BRddddttt where
BR birth rate in group
di death rates in group Pi
tij, transition from group Pi to group Pj due to ageing
initconds PinitPinitPinitPinit
timedatatinittfinal,delt
RESULTS:
PPPP group time histories as row vectors. If these conventions are not followed an incorrect answer will result. Parameters
BR;
d;
d;
d;
d;
t;
t;
t;
Initial conditions in s for convenience
Pinit;
Pinit;
Pinit;
Pinit;
Time parameters
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
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
