Why can't I use the PCA function on my 513*40 matirx with positive and negative values?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a 513*40 matrix of EEG data so that means microvolt values ranging from -30 to 30. I want to use the function PCA in order to reduce the dimensionality so I can use a pattern recognition software but when I say coeff=pca(x) it gives me the error message that subscript must be positive real integers or logicals. I have tried taking the RMS of the matrix to make all positive but I still get the same error. Can anyone explain why?
anxious for reply. Thanks Kim
0 件のコメント
採用された回答
Image Analyst
2014 年 6 月 15 日
You have an array in your program called pca. This causes it to take precedence over the toolbox function. So it's assuming x are indexes of your array called pca instead of inputs to the function pca. Rename your pca array to something else, like pcaCoefficients or something.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!