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

采纳的回答

Image Analyst
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 个)

类别

Help CenterFile Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by