Finding Peaks and Troughs of a signal using differentiation?
4 views (last 30 days)
Show older comments
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/329150/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/329153/image.png)
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
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!