求教:因子分析factoran函数总提示错误!。
Ältere Kommentare anzeigen
用因子分析时候老提示错误:
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‘);
出现同样错误。
搞了两天了也没弄明白到底哪里出了问题。
请大家帮忙看看是怎么回事,不胜感激!
谢谢,原始数据在附件中。
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 降维和特征提取 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!