I have a problem of the function findpeaks R2015b : it does not detect the flat peaks like in the version of R2013b

2 次查看(过去 30 天)
I used the same program in both versions of Matlab R2015b and R2013a. In the version R2013a, I use the function 'findpeaks' and it does detect all the peaks (even the flat peaks), however the same code implemented in the version R2015b of Matlab does not detect the flat peaks. I don't understand if it is related to the options of the function 'findpeaks' or there is an extension to add to one of the versions.
  1 个评论
Adam
Adam 2017-6-6
编辑:Adam 2017-6-6
The only change I can see that affects findpeaks is in R2014b:
'The function findpeaks now lets you estimate the width of any peak and limit the results of peak searches by width or prominence. When called with no output arguments, the function plots the signal and annotates the value, width, and prominence of every peak.'
This may account for what you are seeing if the new peak width maths causes different default behaviour.

请先登录,再进行评论。

回答(1 个)

Greg Dionne
Greg Dionne 2017-7-27
Hi Salma,
Hopefully its not too late to ask you, but if perhaps you can post your data or contact technical support we can take a look.
https://www.mathworks.com/help/matlab/matlab_env/contact-technical-support.html

Community Treasure Hunt

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

Start Hunting!

Translated by