File Exchange

image thumbnail

detectEcgWithAngle(​ecg, fSInHz, varargin): Heartbeat detection using sample-to-sample angle

version (25.3 KB) by David J. Mack
Implementation of the R-peak detector using the angle between successive samples.

1 Download

Updated 08 Feb 2018

View Version History

View License

This is the complete implementation of the R-peak detector from Song, Cho, Kim & Lee proposed in "New real-time heartbeat detection method using the angle of a single-lead electrocardiogram", Computers in Biology and Medicine, 59 (2015). DOI: 10.1016/j.compbiomed.2015.01.05.
The detector is robust to noise and peak reversal and uses a single lead ecg signal. See the header of the function for a detailed description.

Cite As

David J. Mack (2021). detectEcgWithAngle(ecg, fSInHz, varargin): Heartbeat detection using sample-to-sample angle (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

David J. Mack

Thanks Vivek for the nice review and the totally constructive criticism. Would have loved to know why you gave that rating... But that's just me.


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

Inspired by: Plot (Big)

Community Treasure Hunt

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

Start Hunting!