% Linear Algebra: Theory and Applications
% Ward Cheney & David Kincaid
% JBPub.com (c) 2008 
% File: migration.m
% Population Migration Problem

A = [0.7,0.12,0.20;0.20,0.80,0.30;0.10,0.08,0.50];
x = [3;4;6];
z = [0,x']
for k=1:16
  x = A*x;
  z = [k,x']
end
