determine the R waves to evaluate the ECG signal and determine the heart rate.
조회 수: 4 (최근 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!