Professional Documents
Culture Documents
clear all
close all
clc
figure (1)
Fmuestreo = 100;
Electro = load('a01m.mat');
Electro2 = Electro.val/200;
figure(1)
subplot(1,2,1)
stem(Electro.val);
title('Electrocardiograma Orignial')
ylabel('Amplitud (mV)')
xlabel('Tiempo (s)')
subplot(1,2,2)
stem(Electro2);
title('Electrocardiograma sin ganancia')
ylabel('Amplitud (mV)')
xlabel('Tiempo (s)')
desiredFs = 1400;
t = (0:length(Electro.val)-1)/100;
[y, Ty] = resample(Electro.val,t,desiredFs);
figure(2)
stem(Ty,y)
title('Electrocardiograma Remuestreada')
ylabel('V(mv)')
xlabel('Tiempo (s)')
figure(3)
% subplot(2,2,3)
plot(t,Electro.val);
hold on
title('Electrocardiograma Remuestreada')
ylabel('V(mv)')
xlabel('Tiempo (s)')
title('Picos Electrocardiograma')
ylabel('V(mv)')
xlabel('Tiempo (s)')
figure (5)
picos =findpeaks(Electro.val,'MinPeakProminence',200);
disp(picos)
[picos,locs] = findpeaks(Electro.val,'MinPeakProminence',200);
findpeaks(Electro.val,'MinPeakProminence',200)
text(locs+.02,picos,num2str((1:numel(picos))'));
title('Picos mayores Electrocardiograma')
ylabel('V(mv)')
xlabel('Tiempo (s)')
figure (6)
subplot(1,2,1)
plot(Pos)
subplot(1,2,2)
plot(Neg)
p =
14
q =
frn =
1400
t =
Columns 1 through 7
Columns 8 through 14
Columns 15 through 21
Columns 22 through 28
Columns 29 through 35
Columns 36 through 42
Columns 43 through 49
Columns 50 through 56
Columns 57 through 63
Columns 64 through 70
Columns 71 through 77
Columns 78 through 84
Columns 85 through 91
Columns 92 through 98
0.0650 0.0657 0.0664 0.0671 0.0679 0.0686 0.0693
Columns 1 through 13
-12 -13 -16 -16 -16 -17 -17 31 -39 294 -31 -28 -23
Columns 14 through 26
Columns 27 through 39
Columns 40 through 52
Columns 53 through 65
Columns 66 through 78
-6 -12 -16 -17 -18 -20 -22 -19 32 -35 340 -29 -23
Columns 79 through 91
-13 -15 -14 -13 36 -34 -35 319 -26 -26 -22 52 2
4 -6 -12 -11 -13 -13 -14 -14 -15 36 -32 -33 299
-26 -27 -24 -11 43 49 0 -13 -13 -15 -16 -15 -16
-13 -13 -12 -13 -16 -10 32 -32 310 -21 -17 54 55
-9 -14 -17 -14 -17 -17 -18 -18 34 -37 -36 309 -31
294 237 244 299 340 344 319 299 294 310 309
Published with MATLAB® R2020b