peakperformance

Find local peaks in a signal
ダウンロード: 354
更新 2012/5/2

ライセンスの表示

Efficiently finds local maxima in a signal (NlogN time) - these are defined as points in which are the higher than any other point within a specified range.

Matlab's "findpeaks" has a slightly different definition in which peaks simply have to be spaced apart by some minimum distance, but do not have to be actual maxima in their region.

To see the difference:
x=cos(linspace(0,50,1000))+randn(1,1000)*.2;
[locs heights]=peakperformance(x,30); % Find all peaks that are the highest within 30 samples
[heights2 locs2]=findpeaks(x,'minpeakdistance',30);
clf; plot(x); hold all; plot(locs,heights,'*'); plot(locs2,heights2-.05,'*');
legend '' 'peakperformance' 'findpeaks'

引用

Peter O'Connor (2024). peakperformance (https://www.mathworks.com/matlabcentral/fileexchange/36502-peakperformance), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2010b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0