Gaussian Peaks in Plotted Data

I want to find gaussian peaks in my plotted data and not just the local maxima peaks. 'findpeaks' won't work because it thinks that my x values aren't increasing monotonically. Also, findpeaks is just for the local maxima. I want to fit each peak with a Gaussian curve and transpose it onto my plotted data. Is there a tolbox or command I can use to easily find these peaks? I want to make a graph like the attached.
Peak_Analysis_01.png?v=2661

1 Comment

Hi, could I take alook at your code? I got a similar issue

Sign in to comment.

 Accepted Answer

Anmol Dhiman
Anmol Dhiman on 6 Sep 2019

1 Comment

Thanks very much for the help. The ipf.m is what I was looking for. I was able to get a plot similar to what is posted in the questions but I have to keep playing around with it to get a fit of the entire data set at the same time.

Sign in to comment.

More Answers (0)

Asked:

on 3 Sep 2019

Commented:

on 22 Feb 2021

Community Treasure Hunt

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

Start Hunting!