How to fit multiple peaks using Gaussian funtion

조회 수: 8 (최근 30일)
Yachao Chen
Yachao Chen 2018년 3월 13일
편집: the cyclist 2020년 7월 6일
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
MCC
MCC 2020년 3월 21일
Hi Yachao,
Did you solve this probelm?
Thanks,
Jay

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

답변 (2개)

the cyclist
the cyclist 2020년 3월 21일
편집: the cyclist 2020년 7월 6일
Never noticed 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.

Meriem Serdi
Meriem Serdi 2020년 7월 6일
You can use gauss8 instead of gauss2.

Community Treasure Hunt

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

Start Hunting!

Translated by