Code covered by the BSD License  

Highlights from
detect the Peak or valley in a 1 D signal

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 1.58 KB File ID: #41262
image thumbnail

detect the Peak or valley in a 1 D signal

by

 

14 Apr 2013 (Updated )

%To detect the Peak or valley in a 1 D signal;with some parameter for select

| Watch this File

File Information
Description

%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

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
15 Apr 2013

tags

15 Apr 2013

tags

Contact us