Вы находитесь на странице: 1из 3

PROCESAMIENTO DE SEALES ANALGICAS Y DIGITALES

Nombre: Lenin Antonio Juela Torres


Fecha: 2013/04/11
Tema: Comprobar las funciones de convolucin con seales de audio reales.
1. Con dos muestras de audio diferentes observar el resultado de la convolucin y
correlacin.

Cdigo:
[p1,f]=wavread('pista1.wav');
[p2,f1]=wavread('pista2.wav');
R1=p1(:,1);
L1=p1(:,2);
time=size(R1,1)/f;
t=0:1/f:time;

R2=p2(:,1);
L2=p2(:,2);
time1=size(R2,1)/f1;
t1=0:1/f1:time1;
convolucion=conv(p1(:,2),p2(:,2));
correlacion=xcorr(p1(:,2),p2(:,2));
subplot(4,1,1)
plot(t(2:end),R1)
title('Seal 1')
subplot(4,1,2)
plot(t1(2:end),R2)
title('Seal 2')
subplot(4,1,3)
plot(convolucion)
title('Convolucin')
subplot(4,1,4)
plot(correlacion)
title('Correlacin')

2. Con dos muestras de audio idnticas observar el resultado de la convolucin y


correlacin.

Cdigo:
[p1,f]=wavread('pista1.wav');
[p2,f1]=wavread('pista1.wav');
R1=p1(:,1);
L1=p1(:,2);
time=size(R1,1)/f;
t=0:1/f:time;
R2=p2(:,1);
L2=p2(:,2);
time1=size(R2,1)/f1;
t1=0:1/f1:time1;
convolucion=conv(p1(:,2),p2(:,2));
correlacion=xcorr(p1(:,2),p2(:,2));
subplot(4,1,1)
plot(t(2:end),R1)
title('Seal 1')
subplot(4,1,2)
plot(t1(2:end),R2)
title('Seal 2')
subplot(4,1,3)
plot(convolucion)
title('Convolucin')
subplot(4,1,4)
plot(correlacion)
title('Correlacin')

Вам также может понравиться