USPS2MAT

converts USPS database to Matlab data file (MAT).



 Description:
  It creates MAT-file containing training and testing part
  of the USPS database of handwritten numerals.

 Input:
  It requires input text files "zip.test" and "zip.train"
  which can be downloaded from:

  http://www-stat-class.stanford.edu/~tibs/ElemStatLearn/datasets/zip.train.gz
  http://www-stat-class.stanford.edu/~tibs/ElemStatLearn/datasets/zip.test.gz
  
 Output:
  The output MAT-file "usps.mat" contains: 
   trn.X [256 x 7291] Images of training numerals stored as columns.
   trn.y [1 x 7291] Labels y==1 -->"1", ..., y==9-->"9",... y==10-->"0".

   tst.X [256 x 2007] Images of testing numerals stored as columns.
   tst.y [1 x 2007] Labels.

 Example:
  The following code displays the first training image.
   load usps.mat;
   img = reshape(trn.X(:,1),16,16);
   figure; 
   imshow(img,[]);
 

Source: usps2mat.m

About: Statistical Pattern Recognition Toolbox
(C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac
Czech Technical University Prague
Faculty of Electrical Engineering
Center for Machine Perception

Modifications:
07-jun-2004, VF
10-mar-2004, VF