How can I find the heart rate and R-R time interval for ECG Signal?

29 visualizaciones (últimos 30 días)
I extracted this ECG Signal as xls file and i need to find heart rate and R-R Time interval. Help me out!

Respuesta aceptada

Star Strider
Star Strider el 14 de Mayo de 2021
Getting the information from the file was something of an adventure! I likely could have done this with detectImportOptions, however this was easier for me.
T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/617833/samples%20(4).xls', 'VariableNamingRule','preserve')
T1 = 3600×3 table
'Elapsed time' 'MLII' 'V5' ______________ ______ ______ {''0:00.000''} -0.145 -0.065 {''0:00.003''} -0.145 -0.065 {''0:00.006''} -0.145 -0.065 {''0:00.008''} -0.145 -0.065 {''0:00.011''} -0.145 -0.065 {''0:00.014''} -0.145 -0.065 {''0:00.017''} -0.145 -0.065 {''0:00.019''} -0.145 -0.065 {''0:00.022''} -0.12 -0.08 {''0:00.025''} -0.135 -0.08 {''0:00.028''} -0.145 -0.085 {''0:00.031''} -0.15 -0.085 {''0:00.033''} -0.16 -0.075 {''0:00.036''} -0.155 -0.07 {''0:00.039''} -0.16 -0.07 {''0:00.042''} -0.175 -0.065
VN = T1.Properties.VariableNames
VN = 1×3 cell array
{''Elapsed time''} {''MLII''} {''V5''}
Time = datetime(T1.('''Elapsed time'''),'InputFormat','''''mm:ss.SSS''''', 'Format','mm:ss.SSS')
Time = 3600×1 datetime array
00:00.000 00:00.003 00:00.006 00:00.008 00:00.011 00:00.014 00:00.017 00:00.019 00:00.022 00:00.025 00:00.028 00:00.031 00:00.033 00:00.036 00:00.039 00:00.042 00:00.044 00:00.047 00:00.050 00:00.053 00:00.056 00:00.058 00:00.061 00:00.064 00:00.067 00:00.069 00:00.072 00:00.075 00:00.078 00:00.081
RR1 = islocalmax(T1.('''MLII'''), 'MinProminence',1);
figure
plot(Time, T1.('''MLII'''))
hold on
plot(Time(RR1), T1{RR1,2}, '^r')
hold off
grid
RR2 = islocalmax(T1.('''V5'''), 'MinProminence',0.5);
figure
plot(Time, T1.('''V5'''))
hold on
plot(Time(RR2), T1{RR2,3}, '^r')
hold off
This will give you the indices of the R-deflections with respect to time. I am certain that you can take it frrom here, however it will first be necessary for you to understand what islocalmax does and what it returns.

Más respuestas (1)

Nuwan
Nuwan el 15 de Sept. de 2022
How to find the R-R interval ?
  3 comentarios
Star Strider
Star Strider el 15 de Sept. de 2022
Post this ss a new question. I will not respond to it here.

Iniciar sesión para comentar.

Categorías

Más información sobre ECG / EKG en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by