Escolar Documentos
Profissional Documentos
Cultura Documentos
PROGRAM
% program for ECG analysis
X=
[0,0,0,0,5,0.7,0.8,0.7,0.5,0,0,-1,-1.5,1,2,4,6,4,2,7,
-1,-11,-2,- 4,0,0,0,0,2,0.4,0.5,0.4,0.8,0,0,0,0,0,0,0,0,
5,0.7,0.8,0.7,0.5,0,0,-1,-1.5,1,2,4,6,4,2,7,
-1,-1,-2,-4,0,0,0,0,2,0.4,0.5,0.4,0.8,0,0,0,0]
Start
Generate noise
Compute FFT
Y label (amplitude);
Title (filtered input signal);
Y3 = fft (y1);
Subplot (2, 3, 6);
Stem (y3);
X label (time period);
Y label (amplitude);
Title (filtered output signal);
PROGRAM
% program for ECG analysis
X=
[0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1]
Start
Generate noise
Compute FFT
Plot (y);
X label (time period);
Y label (amplitude);
Title (convoluted signal);
% program for averaging filter
h = [1 1 1 1 1 1]/6;
Y1= conv (h, y);
Subplot (2, 3, 4);
Plot (y1);
X label (time period);
Y label (amplitude);
Title (filtered signal);
% program for FFT of filtered input and output signal
Y = fft (x);
Subplot (2, 3, 5);
Stem (y2);
X label (time period);
Y label (amplitude);
Title (filtered input signal);
Y3 = fft (y1);
Subplot (2, 3, 6);
Stem (y3);
X label (time period);
Y label (amplitude);
Title (filtered output signal);
PROGRAM
% program for ECG analysis
X=
[0,1,2,2.5,3,3.2,3.4,3.6,3.5,3.4,3.2,2.5,1,0,
0.01,0.02,0.1,0.2,2,2.5,3,3.2,3.4,3.6,3.5,
3.4,3.2,2.5,1,0,0.01,0.02,0.1,0.2,0,1,2,2.5,3,
3.2,3.4,3.6,3.5,3.4,3.2,2.5,1,0,0.01,0.02,0.1,
0.2,0,1,2,2.5,3,3.2,3.4,3.6,3.5,3.4,3.2,
2.5,1,0,0.01,0.02,0.1,0.2,0,,2,2.5,3,3.2,
3.4.3.6,3.5,3.4,3.2,2.5,1,0,0.01,0.02,0.1,0.2]
Fllow chart
Start
Generate noise
Compute FFT
AIM
To generate Sine and Cosine Signals and compute their FFT.
ALGORITH-
RESULTThus, the sine & Cosine signals were generated and their FFT &IFFT were
computed using Lab View program.
RESULTThus, the ECG Signal has been analysed using Lab View.