Processingof ECGsignalswith MATLABprogram
Processingof ECGsignalswith MATLABprogram
net/publication/351528340
CITATIONS READS
0 5,283
1 author:
SEE PROFILE
All content following this page was uploaded by Zahra Abdolali Kazemi on 12 May 2021.
Fig1. The initial signal received from the patient with arrhythmia
Draw a period from the above signal: First we determine the sampling frequency, for example
1000 Hz, and we determine the periodicity of 500. To determine a periodicity, we use the
following program. Here, the period of T multiplied by 1000 Hz represents the selection of a
periodicity of the above alternating signal.
clc
clear
close all
load('ecg lab2.mat')
fs=1000;
T=500;
x= ecg(:,1:T*1000);
t=1/fs:1/fs:T;
plot(t,x)
load('ecg lab2.mat')
fs=500;
m=length(ecg);
fy=fft(ecg,m);
p=(0:(m-1))*(fs/m);
k=(abs(fy))/(500);
plot(p,k)
r=find(p<50);
r=0;
ecg1=ifft(k);
plot(ecg1)