determine the R waves to evaluate the ECG signal and determine the heart rate.
5 次查看(过去 30 天)
显示 更早的评论
Hello, I have a raw ECG signal from the program opensignals, I have filtered it with the low pass filter and now I want to determine the R waves to evaluate the ECG signal and determine the heart rate. any help since i am new in this field. Thanks.
clear all
close all
x1 = readmatrix('opensignals_98d391fd3f18_2020-05-07_16-43-17.txt', ...
'HeaderLines', 3, 'ExpectedNumVariables', 6); % load the ECG signal from the file
fs = 1000; % Sampling rate
N = length (x1); % Signal length
t = [0:N]/fs; % time index
x1 = x1 - mean (x1 ); % cancel DC conponents(Gleichstrom der sich auf einen Signalwert bezieht, der sich nicht ändert.
x1 = x1/ max( abs(x1 ));% normalize to one (gibt den absoluten Wert jedes Elements in Matrix X zurück)
% LPF (1-z^-6)^2/(1-z^-1)^2
%Tiefpassfilterung
[b a] = butter(4,30/(0.5*fs),'low'); % Koeffizienten der Übertragungsfunktion, f_tp ist die Grenzfrequenz, fs die Abtastfrequ., Butterworthfilter
h_LP=filtfilt(b,a,x1); %x ist das Signal
figure(1)
plot(t(1000:N),x1(1000:N),t(1000:N),h_LP(1000:N));
xlabel('sec');ylabel('Volts');title('EKG Signal'),
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ECG / EKG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!