工作环境(蓝色粗体字为特别注意内容)
1,软件环境:Windows 7 Ultimate sp1、matlabR2012b 32bit
2,参考文献:①https://jp.mathworks.com/products/statistics.html②https://blog.csdn.net/zhansama/article/details/82745128
Matlab2012b中使用高斯混合模型报错:
gm = fitgmdist(X,2,'Options',options)
Undefined function 'fitgmdist' for input arguments of type 'struct'.
了解相关信息,发现fitgmdist函数是Statistics and Machine Learning Toolbox工具箱中的东西,一筹莫展之际,看到了参考文献②,于是将高斯混合模型改为:
gm=gmdistribution.fit(X,2,'Covtype','Diagonal','Regularize',1e-10,'Options',options);
顺利执行。
来源:https://blog.csdn.net/pang9998/article/details/98755205