Hi,
I have two matrices: samplesTR, size of <160x1458 double> and labelsTR, size of <1x1458 double>. I send you both.
I want to reduce dimension of matrix by PCA in PRTools.
Code:
samplesTR = dataset(samplesTR’,labelsTR’);
samplesPCA = PCA(samplesTR,0.98);
Now, samplesPCA is reduced to <160x131 mapping>.
I want to use samplesPCA with labelsTR for SVM. But number of training samples and its labels are different from each other. (i.e. samplesPCA has size of <160x131 mapping> and labelsTR has <1x1458 double>.)
How can I obtain samplesPCA’s labels values? or how can I match these two matrices?
Regards..

