Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. %A=[0,0,0,0,0,1/3,1/4;1/3,0,1/3,0,0,0,1/4;0,1,0,0,0,1/3,1/4;0,0,1/3,0,1/2,0,0;0,0,1/3,1/2,0,1/2,0;1/3,0,0,1/2,0,0,1/4;1/3,0,0,0,0,0,0]
  2. R= transpose([0 1/3 0 0 0 1/3 1/3])
  3. x=transpose([1/7 1/7 1/7 1/7 1/7 1/7 1/7])
  4.  
  5. while R.^k.*x ~= R.^(k+1).*x
  6. k=k+1;
  7. end
  8. k
  9. R.^k.*x
  10. R.^(k+1).*x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement