MATLAB Answers

How to fit multiple peaks using Gaussian funtion

20 views (last 30 days)
Yachao Chen
Yachao Chen on 13 Mar 2018
Answered: the cyclist on 21 Mar 2020
I am trying to fit my XRD pattern using Gaussian function. I have a dominant peak and several small peaks. I have 'angel' as x-axis, and 'Intensity' as y-axis. I applied : f=fit(angel, Intensity,'gauss2'); plot(f,angel, Intensity);
But it will only fit my dominate peak. Could you please let me know how to fit the rest of the small peaks?
Besides, I also want to report the area (integration) of each peak, how should I achieve that?
Thanks a lot!

  1 Comment

MCC
MCC on 21 Mar 2020
Hi Yachao,
Did you solve this probelm?
Thanks,
Jay

Sign in to comment.

Answers (1)

the cyclist
the cyclist on 21 Mar 2020
Never this the original of this question, but saw the comment.
If you have the Statistics and Machine Learning Toolbox, I believe the fitgmdist function will be helpful for this.

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by