function img=readface(n,type)
  fhead = "C:/Users/mitran/courses/MATH547/lessons/yalefaces/subject";
  fnr = strcat(num2str(n,"%2.2d"),".");
  fname = strcat(fhead,fnr,type);
  [img,map,alpha] = imread(fname);
endfunction;