Finding Peaks and Troughs of a signal using differentiation?

12 views (last 30 days)
Hi,
Firstly, I do know how to find the peak and troughs using findpeak blackbox. And now am trying to write my own algorithm to understand the Mathematics behind finding peaks and troughs in a signal . Obviously ,I used differentiation to find the local minima and maxima . The signal is a PPG signal .However, this method also detects unwanted peaks and troughs at the position of notch and I'm facing trouble in eliminating it .
The code and the figure are here below.
Any suggestions or inputs on this that can help me in getting rid of this unwanted peaks and troughs would be highly appreciated .
Thankyou
  2 Comments
Suvvi Kuppur Narayana Swamy
Yes I have .islocalmax and find peaks are working fine in detecting the peaks and troughs.But I want to understand using the differentiation technique .

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!