MATLAB: Determining Average Heart Rate of ECG Signal

signal

I have this ECG Signal. I am trying to determine the average heart rate. I do not know how to determine it . Maybe using flowing graph by refreshing it on every ms by this, signal may shift through right . Every method will be useful for me . The main issue is determining average heart rate .

Best Answer

Use the findpeaks function to detect the R-waves and the times they occurred. Then count the total number of R-waves, find the times of the first and last R-waves, and divide the number of R-waves by the difference between the first and last times. Convert to the rate units you want (beats/second, beats/minute, etc.) as necessary.