echo on

% Load the chars -- there are 4 mats chars, tchars, target and correct
% CHARS contains 190 examples of each of 10 classes.
% TCHARS contains the 10 testing examples of each of 10 classes.
% TARGET is the target for CHARS
% CORRECT is the target for TCHARS

load all_chars.mat

clf
% Show a char
% Show one of example of each type of reconstructed digit.
for i = 0:9
  index = i*190+1;
  imshow(reshape(chars(index,:), 16, 16)');
  disp(target(index,:)); 
  pause; 
end


% Show 20 examples of the test digits.  
for i = 0:19
  index = i*5+2
  imshow(reshape(tchars(index,:), 16, 16)');
  disp(correct(index,:)); 
  pause; 
end
