detect the Peak or valley in a 1 D signal

%To detect the Peak or valley in a 1 D signal;with some parameter for select
788 Downloads
Updated 15 Apr 2013

View License

%To detect the Peak or valley in a 1 D signal
% input: y signal ;n*1
% T threshold of D-value ,which is difference between the peak value
% or valley value and bilateral value
% d the distance of bilateral value
% p_v parameter for peak or valley ;p_v=0 all;pv=1,peak only;others
% valley only
% example [x1 x2 x3 x4 x5] d=2; T=0.5; When (x1+x5)-2x3>T ,the x3 will be
% decided as a valley
% output: ind the index of peak or valley

Cite As

pang jianfei (2024). detect the Peak or valley in a 1 D signal (https://www.mathworks.com/matlabcentral/fileexchange/41262-detect-the-peak-or-valley-in-a-1-d-signal), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

tags

1.1.0.0

tags

1.0.0.0