From the gmdistribution
object - obj
, you can get the nx1
mean vector by simply referencing that field as follows:
meanVector=obj.mu;
题
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;