I’ve used the gmdistribution to fit data to a Gaussian mixture model. I wanted to plot a contour plot https://i.stack.imgur.com/d6Pdb.jpg where the contours are obviously missing. For a 1D problem I found fplot, but now I’m stumped.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I ran into a similar problem when I wrote an EM algorithm for gaussian mixtures. Here is the snippet of code that fixed it in my case:
The key is to increase
N: