Finding peaks in a data set
2 ビュー (過去 30 日間)
古いコメントを表示
Hello all,
I have some data and need a way to reliablly find the peaks of the data set. The picture below shows the plotted data. There are 19 peaks on each side of the data for a total of 38 peaks. I have tried using the findpeaks function, however it seems to pick up random spots in the data. I am consisently trying to find all 38 peaks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151086/image.jpeg)
Thanks
4 件のコメント
dpb
2013 年 10 月 23 日
And, I suppose while we're asking, what options did you use/have you tried to rid the spurious peaks from the results???? findpeaks does have quite a lot of flexibility in what it thinks is a qualifying peak depending on the inputs given.
回答 (1 件)
Wayne King
2013 年 10 月 23 日
編集済み: Wayne King
2013 年 10 月 23 日
I would first ensure you are using MathWorks' findpeaks(). If you enter
>>which findpeaks
do you get something back like
matlab\toolbox\signal\signal\findpeaks.m
If so, then as dpb suggests, I would use one or more of the options in findpeaks() like
'MinPeakHeight',MPH
for example.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!