Gaussian decomposition
11 次查看(过去 30 天)
显示 更早的评论
I am a physics major student.Now I want to use two Gaussian functions to fit the original function(When given the x,y data)in matlab.And this is for the emission spectrum.So,which function should I use(or which way)?Thank you!
0 个评论
回答(1 个)
Walter Roberson
2011-10-15
3 个评论
Walter Roberson
2011-10-15
Those routines appear to do that. See for example the text
2. Fit a two-component Gaussian mixture distribution. Here, you know the correct number of components to use. In practice, with real data, this decision would require comparing models with different numbers of components.
options = statset('Display','final');
gm = gmdistribution.fit(X,2,'Options',options);
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!