File Exchange

image thumbnail

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

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

0 Downloads

Updated 08 Feb 2018

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.

Comments and Ratings (0)

Updates

1.4.0.0

[!!!] Detection results may have changed for sampling rates ~= 200 Hz.
[FIX] Reintroduced the DESIGNFILT call for sampling rates ~= 200 Hz to get the filter coefficient right.
[FIX] Crash when plotting detection results with only 1 peak.

1.3.0.0

[FIX] Crash when plotting empty detection results.
[FIX] Crash when plotting data with all-normal rr intervals.
[ADD] New optional input 'minTStartInSec' to remove erroneous detections at the start of the recording.

1.2.0.0

Forgot to mention another modification:
[MOD] The transfer function representation of the bandpass-filter is now to avoid calling the slow DESIGNFILT method every time. This also removes the according dependency.

1.2.0.0

- [FIX] Error in the description which stated useBaselineCorrection as being false by default, which it isn't.
- [MOD] If rPeakAmps is not requested as output and showPlot==false, baseline correction will now silently be turned off for speed.

1.1.0.0

[FIX] Checks for optional dependencies now work properly.

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

Inspired by: Plot (Big)

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor