 plot(1:i,recon_err,<span class="string">'LineWidth'</span>,3);
  title(<span class="string">'Reconstruction Error'</span>);
  fprintf(<span class="string">'%d:Reconstruction Error = %f\n'</span>,i,recon_err(i))
<span class="keyword">end</span>
</pre><pre class="codeoutput">Performing PCA.... stay tuned
1:Reconstruction Error = 0.353734
2:Reconstruction Error = 0.221739
3:Reconstruction Error = 0.220793
4:Reconstruction Error = 0.220514
5:Reconstruction Error = 0.199437
6:Reconstruction Error = 0.193948
7:R