I am trying to use the "findpeaks" function to find the peak in a set of data.
1 次查看(过去 30 天)
显示 更早的评论
I am trying to use the "findpeaks" function to find the peak in a set of data. I want to better understand how the function works. Please explain what is the purpose of the number "7000" in the line below? It finds several peaks when this number is low. It only finds one when this number is 7000 or higher.
[ymx,idx] = findpeaks(y, 'MinPeakProminence',7000);
0 个评论
回答(1 个)
DGM
2021-9-10
编辑:DGM
2021-9-10
The documentation for findpeaks explains it better than I could:
"The prominence of a peak measures how much the peak stands out due to its intrinsic height and its location relative to other peaks. A low isolated peak can be more prominent than one that is higher but is an otherwise unremarkable member of a tall range."
The documentation of the MinPeakProminence KVP:
An explanation of the prominence algo:
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!