Click on the faceData link to download file faceData.mat. In MATLAB use command, 'load faceData'. The variable A will be loaded in your workspace. This variable is of size 1734 x 150. It contains 150 face images of size 34 x 51 each, arranged in columns. Each column was generated by scanning the original image in a row-wise order. To view any of the original images, you may use the reshape command: For example, if we want to extract the 70th image, do the following: im70 = reshape(A(:,70), 51, 34)'; For those of you who may be interested in how this matrix was generated given the original PGM files, I have put a file generatingA.zip on the web-page. It also includes a function ReadBinPGM.