3.5

3.5 | 2 ratings Rate this file 9 Downloads (last 30 days) File Size: 5.56 KB File ID: #8793

Plot_GM

by Patrick Tsui

 

22 Oct 2005 (Updated 24 Oct 2005)

Generate ellipse and landscape plots of Gaussian mixture.

| Watch this File

File Information
Description

A reviewer of my EM_GM code suggests that it would be nice to separate the Gaussian mixture (GM) plot function from the code, so that it can be used alone.

The Plot_GM function includes input verifications, 1D and 2D plots of GM. For 2D, it can be controlled to plot ellipses and/or landscapes of GM. It has detail descrptions of the inputs.

Please contact me if you find any bug.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
EM_GM

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
08 Aug 2006 Sameer K

Works great!
I wanted to display the ellipses superimposed on a 2D image, so just modifed the code a bit to pass a figure handle as input parameter. Also, having the color of the ellipse as an optional input parameter will be useful.

06 Jun 2007 Phong vO

I use your code in Bayes Classifier.
With my data, the Log Likelihood is NaN and Covariance matrix is singular --> det(Cov) = 0
So I can't process futher.
Please show me how to deal this problem
Thank you

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Patrick Tsui 22 Oct 2008 08:03:54
probability Patrick Tsui 22 Oct 2008 08:03:54
gaussian mixture Patrick Tsui 22 Oct 2008 08:03:54
ellipse plot Patrick Tsui 22 Oct 2008 08:03:54
meshc plot Patrick Tsui 22 Oct 2008 08:03:54

Contact us at files@mathworks.com