문제

Running the function:

obj = gmdistribution.fit(X,n)

outputs an obj of class gmdistribution. However, I would like to output an n x 1 matrix of means, what commands should I use?

도움이 되었습니까?

해결책

From the gmdistribution object - obj, you can get the nx1 mean vector by simply referencing that field as follows:

meanVector=obj.mu;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top