%Example 1  section 4.9

M=[.95 .03;.05 .97]
N=200;
x=[200000;800000]% try different vectors that elements sum to 1,000,000
M^N*x
M*[375000;625000] % shows that [375000,625000] is a steady state