Calculate Heart Rate from Electrocardiogram Data
Updated 28 Jun 2020
This example shows how to do a simple analysis of an electrocardiogram (ECG) signal and heart rate calculation.
The signal is a measure of electrical activity of the heart over time. The analysis includes removing trends and finding the max peaks in the R-wave. These calculations are performed using Live Editor Tasks to visually explore the effects of choosing different parameters.
Heather Gorr, PhD (2023). Calculate Heart Rate from Electrocardiogram Data (https://www.mathworks.com/matlabcentral/fileexchange/73049-calculate-heart-rate-from-electrocardiogram-data), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- Industries > Medical Devices > Cardiology > ECG / EKG >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.