find peaks of a flat signal

9 views (last 30 days)
bzibubab bzibubab
bzibubab bzibubab on 5 Feb 2020
Commented: Star Strider on 12 Feb 2020
why the findpeaks function cant find several peaks in my signal ?? as i observed, it only happen when the peak is flat, as i marked the noticed peaks with red circles from the findpeaks function, and it couldnt notice any flat peaks.Screenshot (84).png
i have been struggling like a few days to find the answer in the internet and i got nothing. Please help. I really appreciate any kind of answer. Thank you in advance.

Accepted Answer

Star Strider
Star Strider on 5 Feb 2020
If you have R2017b or later, use the islocalmax function, specifcially as described in the Flat Maxima Regions documentation section, using the FlatSelection name-value pair.
Star Strider
Star Strider on 12 Feb 2020
As always, my pleasure!

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!