tissue
Electrical
- Oct 4, 2006
- 1
if i have a leslie matrix L and a popn vector N, and the whole popn= 2 * L^n * N after n years, how would i set up a matlab program to find the popn for each of the next 10 years and the % increase each year (displayed in a matrix)?
I am given this program:
A=[];
for k=1:n
p=L*p;
A=[A p];
end
A
and L=[0 1.26 1.57 0.91 0.63 0.29;0.52 0 0 0 0 0;0 0.69 0 0 0 0;0 0 0.79 0 0 0;0 0 0 0.82 0 0;0 0 0 0 0.48 0]
p=[845;472;310;192;136;93]
I am given this program:
A=[];
for k=1:n
p=L*p;
A=[A p];
end
A
and L=[0 1.26 1.57 0.91 0.63 0.29;0.52 0 0 0 0 0;0 0.69 0 0 0 0;0 0 0.79 0 0 0;0 0 0 0.82 0 0;0 0 0 0 0.48 0]
p=[845;472;310;192;136;93]