Hi, I'm doing facial recognition using PCA. I am using the imagesc and colormap functions to generate an image based on the number of PCA's used however, i am incrementing the number of PCA's used each iteration, for 5 different pictures so MATLAB is plotting 50 different figures each time I run the program. Is there a way to use those functions to simply store the figure, each iteration through the loop, in an array where I can access them separately instead of 50 images popping up each time I run the program?
my code shown below (note: faceR is a table of data, faces is a column vector with the face numbers, eigenfaces is an array of 99 eigenfaces, mean_face is an array of the mean faces)
row = find(faceR.VarName1==faces(i));
v = rows2vars(PCA_faceR(row,1:j));
k = eigenfaces(:,1:j)*v.Var1+mean_face';