Answered step by step
Verified Expert Solution
Link Copied!

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 4 population groups. Migration into group 2 will be defined by a pulse function.
SETUP:
parameters =[ b2,d1,d2,d3,d4,t12,t23,t34] where
b2, birth rate in group 2
di, death rates in group Pi
tij, transition from group Pi to group Pj due to ageing
M2, rectangular migration pulse defined by [Mann2,tStartM2,tEndM2]
initial conditions =[ Pinit1,Pinit2,Pinit3,Pinit4]
time data =[tinit,tfinal,delt]
RESULTS (follow conventions or an incorrect answer will result):
P1,P2,P3,P4, group time histories as row vectors
M2, M2 time history as a row vector % Parameters
b2=.02;
d1=.004;
d2=.0075;
d3=.012;
d4=.019;
t12=.067;
t23=.04;
t34=.04;
% Migration effect M2
M2ann=80;
tStartM2=20;
tEndM2=50;
% Initial conditions (in 1000's for convenience)
Pinit1=1200;
Pinit2=1000;
Pinit3=800;
Pinit4=600;
% Solution control data
tinit=0.;
tfinal=100.;
delt=0.5;
%% Your code goes here %%
% DISPLAY RESULTS SECTION ----- THIS SECTION WILL HELP YOU VISUALIZE YOUR RESULTS
figure
subplot(3,1,1)
plot(t,P1(:),'-',t,P2(:),'--','LineWidth',2)
title('Demographics 1: P1, P2 histories, in 1000''s')
%xlabel('t, years')
ylabel('P1, P2')
legend('P1','P2')
grid on subplot(3,1,2)
plot(t,P1(:),'-',t,P2(:),'--',t,P3(:),'-.',t,P4(:),':','LineWidth',2)
title('P1, P2, P3, P4 histories, in 1000''s')
%xlabel('t, years')
ylabel('P1, P2, P3, P4')
legend('P1','P2','P3','P4')
grid on
subplot(3,1,3)
plot(t,M2,'-','LineWidth',2)
title('Migration effect M2, in 1000''s')
xlabel('t, years')
ylabel('M2')
grid on

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 1 Lnai 6321

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215879X, 978-3642158797

More Books

Students also viewed these Databases questions

Question

1. Explain why talent management is important.

Answered: 1 week ago