function[A,B,C]=get_matrices


% G cell representing the whole database (ORL)
%A,B,C subjects 1,5,10 of the database


%ALL OUTPUTS ARE IN UNIT8 FORMAT
n1=112; n2=92; ne=10; np=40;
str='./s';
%str='./Images/Orl/s';
format='.pgm';
for k=[1,5,10]  
    for j=1:ne
        T_train=imread([str,num2str(k),'_',num2str(j),format]);
        TT_train(:,j)=reshape(T_train,[n1*n2,1]);
    end
    G{k}=TT_train;
end
A=G{1}; B=G{5}; C=G{10};
