View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
ECG Beat Calculation

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.6 | 9 ratings Rate this file 74 Downloads (last 30 days) File Size: 1.53 KB File ID: #24628 Version: 1.1
image thumbnail

ECG Beat Calculation


Arun Kumar (view profile)


03 Jul 2009 (Updated )

Calculates ECG beats per minute

| Watch this File

File Information

This program calculates the beats per minute of of an ECG signal. The data file can be any text format. The output will be an averaged value, since normal ecg of a person is not always constant. There maybe drifts and variations. The percentage error for six seconds of the ecg will be 60/sampling frequency.


This file inspired Ecg Qrs Detection.

Required Products Wavelet Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (12)
15 Aug 2016 Xuesong Niu  
22 Dec 2015 Maria Theodoraki


Comment only
13 Jul 2015 niu bao  
20 Nov 2014 wenlong  
06 Aug 2014 Julie Nevins

Thank you for this very useful code! Is there a way to output the latency of the R peaks (or any part of the PQRS wave) from this code?

29 Nov 2012 menaka mohan


i am new in matlab.
i have a heart rate signal and i want to measure distance between two peak to get heart rate. so how can i measure distance?

thanks for help

Comment only
15 Oct 2012 Miguel Machado  
07 Oct 2012 ramya

ramya (view profile)

how to get ecg signal beat calculation file pls anybody help me

Comment only
24 Jul 2012 Aura Silva  
11 May 2011 Aruni Fonseka

I think this is a good program

11 May 2011 Aruni Fonseka  
09 Mar 2010 Arun Kumar

Arun Kumar (view profile)

27 Jan 2014 1.1

Now the code can read data in any text format. There was a drift error in the calculation which has been corrected to obtain more accurate beat value.

Contact us