% IFAM Adjunta de Godel...

clear;
load faces;

W = maxJ_M(X,X'); 

yIFAMad_M=maxJ_M(Xin',W)';

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