sp(pi(:)')

figure; bar(pi);printPmtkFigure(<span class="string">'smallwebPagerank'</span>);
</pre><pre class="codeoutput">exact pi
  Columns 1 through 4
    0.3210    0.1705    0.1066    0.1368
  Columns 5 through 6
    0.0643    0.2007
</pre><img vspace="5" hspace="5" src="pagerankDemoPmtk_01.png" alt=""> <h2>Power method<a name="4"></a></h2><pre class="codeinput">fprintf(<span class="string">'pi over time using power method\n'</span>);
format <span class="string">compact</span>
pi = e/n;
z = ((1-p)*(c~=0