"Julie" wrote in message <jobv9e$onu$
1...@newscl01ah.mathworks.com>...
Hello,
I have the save problem, trying to run a PCA on 446 168x168 images.
---
F_bas=fopen('08_BA_M_FACEAntbasal.IMG'); % File opening, data lecture
A_bas=fread(F_bas,128*128*nb_total,'*uint16');
B_bas=reshape(A_bas,128,128,nb_total);
fclose(F_bas);
C_bas=B_bas(:,:,nb_skipped:end); % Because I have to skip some irrelevant pictures
D_bas=reshape(C_bas,128*128,nb_total-nb_skipped+1);
[X_coef X_sco]= princomp(D_bas); %PCA where D_bas is a 16.384*446 matrix of uint16
---
Are 16 bit unsigned integers incompatible with bsxfun or is the problem different, maybe because of my matrix' size?
Thanks