"string">'ko-'</span>)
ylabel(<span class="string">'proportion of variance'</span>)
xlabel(<span class="string">'K'</span>)
printPmtkFigure(sprintf(<span class="string">'pcaImages-%s-scree'</span>, name));


<span class="comment">% Plot reconstructed image</span>
ndx = 125; <span class="comment">% selected face</span>
Ks = [2 10 100 rank(X)];
figure(5);clf
<span class="keyword">for</span> ki=1:length(Ks)
  k = Ks(ki);
  <span class="comment">%Xrecon = U(ndx,1:K) * S(1:K,1:K) * V(:,1:K)' + mu;</span>
  Xreco