I have been trying to fit multiple gaussians over a 3-D histogram (Iris data feature 3 and feature 4) using custom equation in cftool (inbuilt in matlab). But results are not coming good. The gaussians are getting clustered nearby nearby the first gaussian (near the origin). But if I try doing this for only one gaussian (data points are similar to gaussian) then I am getting good results.
I am using custom equation method and writing the equation of family of gaussians. I don't want to use fitgmdist as it gives same results always as we pass the full data but I want to pass data using histogram.
Best Answer