) + (c==0))/n;
A = p*G*D + e*z;
<span class="keyword">for</span> i=1:10
  pi = normalize(A*pi);
  disp(pi')
<span class="keyword">end</span>
</pre><pre class="codeoutput">pi over time using power method
  Columns 1 through 4
    0.3319    0.1194    0.1194    0.1667
  Columns 5 through 6
    0.0958    0.1667
  Columns 1 through 4
    0.3219    0.1797    0.0893    0.1232
  Columns 5 through 6
    0.0724    0.2135
  Columns 1 through 4
    0.3214    0.1721    0.1116    0.1369
  Columns 5 through 6
    0.0606  