% Recall using OLAM...

clear;
load faces;

yOLAM=X*(pinv(X)*Xin);
disp('OLAM test - concluded');

figure(3); clf;
for i=1:size(yOLAM,2)
	subplot(4,6,i); imshow(reshape(yOLAM(:,i),s1,s2));
	disp(sprintf('%.4f',norm(yOLAM(:,i)-X(:,1))/norm(X(:,1))));
end
print -deps facesOLAM.eps