Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Contouring gaussian distributions from KMEANS
Replies: 1   Last Post: Nov 11, 2010 4:02 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Mike Hoversten

Posts: 13
Registered: 10/27/06
Contouring gaussian distributions from KMEANS
Posted: Nov 11, 2010 11:52 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

When I use Kmeans to generate clusters I have the means and the cluster indexes, I then calculate the Covariance's from the clusters. I want to put the means and Covariances into a gmdistribution object so that I can call ezcontour to contour the distributino over the scatter plot. However, when I try to change the values of elements of the gmdistribution object (obj1) as obj1.mu(1,1)=4 for example, I get:
??? Error using ==> gmdistribution.subsasgn at 8
Subscripted assignments are not allowed.

If I cant modify elements of an object how do I build an object so I can contour the clusters?

thanks,



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.