Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Leslie Matrices

Status
Not open for further replies.

tissue

Electrical
Joined
Oct 4, 2006
Messages
1
Location
NA
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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top