"><span class="comment">% This file is from pmtk3.googlecode.com</span>

requireImageToolbox
loadData(<span class="string">'facesOlivetti'</span>);
h = 112; w = 92;

<span class="comment">% plot the first 25 faces as a single image</span>
figure;
N = 25;
XtrainImg = zeros(h,w,1,N);
<span class="keyword">for</span> i = 1:N
  XtrainImg(:,:,1,i) = reshape(Xtrain(i,:), [h w]);
<span class="keyword">end</span>
montage(XtrainImg);
title(sprintf(<span class="string">'first %d training images'</span>, N))
<span cla