peakperformance

版本 1.0.0.0 (3.3 KB) 作者: Peter O'Connor
Find local peaks in a signal
354.0 次下载
更新时间 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 CenterMATLAB Answers 中查找有关 Descriptive Statistics 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0