求教:因子分析factoran函数总提示错误!。
Show older comments
用因子分析时候老提示错误:
matlab2014a提示如下:
错误使用 factoran (line 185)
The covariance/correlation matrix must be square, symmetric, and positive definite.
matlab2010b提示如下:
??? Error using ==> factoran at 200
The covariance/correlation matrix must be positive definite.
但是我的数据明明都是合适的,用协方差计算代码如下:
A=cov(X,1);
labmda=factoran(A,4,'xtype','cov');
换成用原始数据计算如下:
labmda=factoran(X,4,'xtype','data‘);
出现同样错误。
搞了两天了也没弄明白到底哪里出了问题。
请大家帮忙看看是怎么回事,不胜感激!
谢谢,原始数据在附件中。
Accepted Answer
More Answers (0)
Categories
Find more on 降维和特征提取 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!