%File: problem_5.m  created Jan. 25, 2000 by Fayez Elguibaly
%The program accepts a 10X10 Markov matrix and the initial state
%vector. It then finds the state vector after different transitions.
%
P=[0    0    0    0    0    0    0    0    0    0
   0.5  0    0    0.5  0    0    0    0    0    0
   0.5  0.5  0.5  0    0    0.5  0    0    0    0
   0    0.5  0    0    0    0    0    0    0    0
   0    0    0.5  0    0    0    0    0    0.5  0
   0    0    0    0    0.5  0    0    0    0    0
   0    0    0    0.5  0.5  0    0    0    0    0
   0    0    0    0    0    0.5  0.5  0    0    0
   0    0    0    0    0    0    0.5  0.5  0    0
   0    0    0    0    0    0    0    0.5  0.5  1]

s0=[1;0;0;0;0;0;0;0;0;0]
s5 = P^5*s0

s10 = P^10*s0
 

 


Book Homepage Book's MATLAB Homepage Markov Matrices

Copyright � 2001 Northstar Digital Design, Inc.