peakperformance:查找信号中的局部峰值-matlab开发

时间:2021-06-01 11:47:18
【文件属性】:
文件名称:peakperformance:查找信号中的局部峰值-matlab开发
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-01 11:47:18
matlab 有效地找到信号中的局部最大值(NlogN 时间)——这些被定义为高于指定范围内任何其他点的点。 Matlab 的“findpeaks”有一个稍微不同的定义,其中峰值只需间隔一些最小距离,但不必是其区域中的实际最大值。 要查看差异: x=cos(linspace(0,50,1000))+randn(1,1000)*.2; [位置高度]=peakperformance(x,30); % 找出 30 个样本中最高的所有峰[heights2 locs2]=findpeaks(x,'minpeakdistance',30); clf; 情节(x); 持有所有; 情节(位置,高度,'*'); 情节(locs2,heights2-.05,'*'); 传说 '' 'peakperformance' 'findpeaks'
【文件预览】:
peakperformance.zip

网友评论