12.07.2015 Views

Filtros FIR

Filtros FIR

Filtros FIR

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10 CAPÍTULO 12. FILTROS <strong>FIR</strong>Fig. 12.10: Diseño por métodos óptimos (N =35).12.3.2 Comandos MATLAB utilizados para generar los filtros% Ventana RECTANGULARM = 15;N= [-M:M];hn= -wc/pi*sinc(N*wc/pi);hn(M+1) = 1-wc/pi;% Ventana HANNM = 32;N= [-M:M];hn= -wc/pi*sinc(N*wc/pi);hn(M+1) = 1-wc/pi;hn = hn.*hanning(2*M+1) 0 ; % ventaneo% Ventana HAMMINGM = 32;N= [-M:M];hn= -wc/pi*sinc(N*wc/pi);hn(M+1) = 1-wc/pi;hn = hn.*hamming(2*M+1) 0 ; % ventaneo% Ventana BLACKMANNM = 48;N= [-M:M];hn= -wc/pi*sinc(N*wc/pi);hn(M+1) = 1-wc/pi;hn = hn.*blackman(2*M+1) 0 ; % ventaneo% ventana KAISER[M,wn,Beta] = kaiserord([ws/pi,wp/pi],[0,1],[0.01 0.01])Nhn= [-M:M];= -wc/pi*sinc(N*wc/pi);hn(M+1) = 1-wc/pi;hn = hn.*kaiser(2*M+1,Beta)) 0 ;% Filtro con transición suave;M= ceil((4*pi/(wp-ws)-1)/2);M = M+4; % aumentar M para cumplir las especs.N = [-M:M]; P = 2;0.624*(wp-ws)*2*M;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!