View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

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



Patrick Tsui (view profile)


22 Oct 2005 (Updated )

Generate ellipse and landscape plots of Gaussian mixture.

| Watch this File

File Information

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.


Em Gm inspired this file.

MATLAB release MATLAB 6.5 (R13)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
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

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.

04 Apr 2016 1.0

Just updating the license.

Contact us