Академический Документы
Профессиональный Документы
Культура Документы
RESUMEN.
x[n] =
yn =
x k h nk = x n h n
k=
INTRODUCCIN.
x k [n k]
k=
DESARROLLO TERICO.
H e
n=0
X z Z xn
x n z n
h n ejn ,
n=
L1
yn =
h k x nk
k=0
x n
=
n=
1 1
= { }
( )
L1
h n z n
H(z) =
n=0
H z = h0 + h0 z 1 + + hL1 z (L1)
Se puede ver que es la misma entrada retardada
cada vez ms en el tiempo, multiplicada por
diversos coeficientes y finalmente sumada al final,
que es prcticamente la idea bsica que se aplica en
octave, especficamente con la funcin freqz.
L1
H(z) = z
(L1)
h n z L1n
n=0
1 ,
0,
H ej = Hd ej W ej
1
=
( )
2
Hd ej = H ej ej
( ( ))
( )
+
0 1
0,
1
Y =
2
Esta operacin es llamada ventaneo. En general
h[n] puede ser conseguida por el producto de
hd n y una funcion de ventana w n , como lo
muestra la siguiente frmula:
[] =
= []
Tarea Ex - Aula No.2
de entrada.
fb: es la frecuencia de la otra componente de la
seal de entrada.
[] =
fc1 =
fc2
ANLISIS DE RESULTADOS
figura 5.
Hasta
este
punto
se
han
conseguido
satisfactoriamente los resultados esperados del
sistema (filtro pasa banda), su respuesta al impulso,
su respuesta en frecuencia, la fase, etc.
CONCLUSIONES.
http://es.wikipedia.org/wiki/Transformada_Z
http://www.tecnun.es/asignaturas/tratamiento%
20digital/tds5.html
http://www.gii.upv.es/personal/gbenet/doctorat
/documentacion_adicional/lecciones%20de%20d
sp/tema5.htmhttp://www.duiops.net/hifi/enciclo
pedia/filtro-digital-FIR.htm
ANEXOS.
BIBLIOGRAFA.
fa = input('
filtrada en Hz:
fb = input('
filtrada en Hz:
N = 350;
% Total de muestras
Demasiadas muestras dan mucho ruido
t = 0:1/fs:(N-1)/fs; % Tiempo continuo
x1_t = sin(2*pi*fa*t);
%se1 en tiempo
continuo
x2_t = sin(2*pi*fb*t);
%se2 en
tiempo continuo
x_in_t = x1_t + x2_t;%sede entrada en
tiempo continuo
% Conversion TC a TD
n = t*fs;% Tiempo discreto
x1_n = sin(2*pi*fa/fs*n);
% se1 en
tiempo discreto
x2_n = sin(2*pi*fb/fs*n);
% se2 en
tiempo discreto
x_in_n = x1_n + x2_n; % sede entrada en
tiempo discreto
figure(1)
plot(t,x1_t,";senial 1;",t,x2_t,";senial
2;",t,x_in_t,";senal de entrada;")% Sede
Entrada
title ('Sede Entrada a muestrar, con sus
componentes');
xlabel ("t [tiempo]" );
ylabel ("x(t)" );
grid on;
axis([min(t) max(t) min(x_in_t)
max(x_in_t)]);
%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@
%********** CALCULO DE LA h[n]**************
M = 256;
%longitud del filtro,
orden = L-1
nn = 0:M-1;
%Tiempo Discreto
w = hanning(M*2-1); % Aplicando la ventana
hhp = (-1).**nn.*2*fcn(1).*
sinc(2*fcn(1).*(nn-M/2)); % Filtro paso alto
hlp = 2*fcn(2)* sinc(2*fcn(2)*(nn-M/2));
% Filtro Paso Bajo
hd = conv(hhp,hlp);
% filtro pasabanda,
respuesta al impulso ideal
hbp = hd.*w';
% filtro pasabanda,
respuesta al impulso con ventana
figure(2);
stem (hbp,"r;h[n];")
title('h[n] - Respuesta al impulso en
tiempo discreto con ventana hanning') ;
xlabel ("n [muestras]" );
ylabel ("h[n]" );
axis([0 length(hbp) min(hbp) max(hbp)]);
grid on;
%********************************************
%////// - GRAFICAS DE H(e^jw) [Respuesta en
frecuencia] - //////
ff = (0:512-1)*fny/(512-1); % Eje de
Frecuencias con fny como maximo
%se evaluan 512
puntos por defecto
Hhp = freqz(hhp,1); % aplicando la
transformada z al filtro paso alta
%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$
%@@@@@@@@@@ - Senial de entrada al filtro FIR
- @@@@@@@@@
printf("\n La senial de entrada estara
compusta por la suma de 2 seniales \
sinusoidales a distinta frecuencia.\n\n\
Las frecuencias de paso son de %d < f < %d
Tarea Ex - Aula No.2
aplicando la
paso baja
aplicando la
pasabanda ideal
aplicando la
pasabanda