nt">% This file is from pmtk3.googlecode.com</span>

<span class="keyword">for</span> ki=1:11
  k = ki-1;
  theta(ki) = 1 + (1/2)^k;
  fprintf(<span class="string">'%d | %10.10f\n'</span>, k, theta(ki));
<span class="keyword">end</span>
</pre><pre class="codeoutput">0 | 2.0000000000
1 | 1.5000000000
2 | 1.2500000000
3 | 1.1250000000
4 | 1.0625000000
5 | 1.0312500000
6 | 1.0156250000
7 | 1.0078125000
8 | 1.0039062500
9 | 1.0019531250
10 | 1.0009765625
</pre><p class="footer"><br>
      Published with MATLAB&