Professional Documents
Culture Documents
end
for k = 1:5
figure()
x=reshape(z(:,k),28,28);
imshow(1-x);
end
The following data was collected from iterations and the final value of J is in
bold, which is the smallest one as we desired.
J= 2.431542e+02.
J= 4.675040e+01.
J= 4.280635e+01.
J= 4.161833e+01.
J= 4.085309e+01.
J= 4.042314e+01.
J= 4.017846e+01.
J= 4.014629e+01.
J= 4.013801e+01.
J= 4.013514e+01.
J= 4.013412e+01.
J= 4.013369e+01.
J= 4.013355e+01.
J= 4.013352e+01.
J= 4.013350e+01.
J= 4.013349e+01.
J= 4.013349e+01.
J= 4.013349e+01.
J= 4.013349e+01.
J= 4.013349e+01.
The following graphs show the five representatives: