Code covered by the BSD License  

Highlights from
ECG Beat Calculation

4.5 | 7 ratings Rate this file 80 Downloads (last 30 days) File Size: 1.53 KB File ID: #24628
image thumbnail

ECG Beat Calculation


Arun Kumar


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.

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 (9)
20 Nov 2014 wenlong


06 Aug 2014 Julie Nevins

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

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

Miguel Machado

07 Oct 2012 ramya


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

Comment only
24 Jul 2012 Aura Silva

Aura Silva

11 May 2011 Aruni Fonseka

Aruni Fonseka

I think this is a good program

11 May 2011 Aruni Fonseka

Aruni Fonseka

09 Mar 2010 Arun Kumar

Arun Kumar

27 Jan 2014

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