Gaussian decomposition

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!

답변 (1개)

Walter Roberson
Walter Roberson 2011년 10월 15일

0 개 추천

댓글 수: 3

yunle wei
yunle wei 2011년 10월 15일
sorry,maybe I haven't cleared myself.I want the opposite way,that is,one function splitted to two functions,thank you.
Walter Roberson
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);
yunle wei
yunle wei 2011년 10월 17일
Thank you.Precisely,now here is a n-2 matrix'X',X(:,1)and X(:,2)represent x and y coordinate,respectively.NOw I want to plot two Gaussian functions that can fit the data metioned above,that is ,the two new functions add together can match the y well enough and I just want the plot of the two new functions.

댓글을 달려면 로그인하십시오.

카테고리

질문:

2011년 10월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by