Splitting two nearly overlapping curves
Mostrar comentarios más antiguos
The attached x-y plot has a main peak on the right and a second peak (shoulder) on the left. Is there a Matlab function that can give the expressions for the two Gaussians that can add up to produce the attached plot?
Thanks,
Vahid
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 3 de Jun. de 2025
1 voto
I have a demo that will fit multiple (6 in the demo) Gaussians to a curve. Change the variable in the demo if you want some other number other than 6.

Also are attached a couple of other Gaussian fitting demos such as this one that fits two Gaussians sitting atop a linear ramp using fitnlm .

2 comentarios
Vahid Askarpour
el 3 de Jun. de 2025
Les Beckham
el 3 de Jun. de 2025
FYI, @Vahid Askarpour: you can't accept two answers, but you can definitely Vote for the second one to show your appreciation. Just click the Vote button (with the thumbs-up icon) at the top of the answer.
Categorías
Más información sobre Install Products en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





