How do you smooth peaks?

I want my algorithm to count 6 instead of 12 peaks in this figure. I can't use a threshold or minpeakdistance/height because my data varies in amplitude/distance (speech), so I'd like to smoothen these peaks to look like one curve (6 curves in total). Can I do that and how?
This is a time-amplitude signal.

Answers (1)

convert_to_metric
convert_to_metric on 17 May 2019

1 vote

Hi Chelsea,
Perhaps using findpeaks and specifying 'MinPeakProminence' will do the trick?

Asked:

on 17 May 2019

Answered:

on 17 May 2019

Community Treasure Hunt

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

Start Hunting!