신호처리 | 제 1형 체비셰프 원형 필터를 사용한 디지털 저역통과 필터 설계 |
페이지 정보
작성자 cemtool 작성일14-04-23 19:01 조회10,812회 댓글0건본문
제 1형 체비셰프 원형 필터를 사용하여 다음 사양을 만족하는 디지털 저역통과 필터를 설계해보자.
- ex8_12.cem
/* Chapter 8: Example 8.12 Impulse Invariance Transformation Chebyshev-1 Lowpass Filter Design */ /* Digital Filter Specifications: */ wp = 0.2*pi; /* digital Passband freq in Hz */ ws = 0.3*pi; /* digital Stopband freq in Hz */ Rp = 1; /* Passband ripple in dB */ As = 15; /* Stopband attenuation in dB */ /* Analog Prototype Specifications: Inverse mapping for frequencies */ T = 1; /* Set T=1 */ OmegaP = wp * T; /* Prototype Passband freq */ OmegaS = ws * T; /* Prototype Stopband freq */ /* Analog Chebyshev-1 Prototype Filter Calculation: */ [cs,ds] = chb1lpf(OmegaP,OmegaS,Rp,As); /* Impulse Invariance transformation: */ [b,a] = implinv(cs,ds,T); [C,B,A] = drt2prl(b,a) % Plotting// figure; //subplot(1,1,1)[db,mag,pha,grd,w] = mfreq_z(b,a); subplot(2,2,1); plot(w/pi,mag); title("Magnitude Response")xtitle("frequency in pi units"); ytitle("|H|"); subplot(2,2,2); plot(w/pi,pha/pi); title("Phase Response")xtitle("frequency in pi units"); ytitle("pi units"); subplot(2,2,3); plot(w/pi,db); title("Magnitude in dB"); xtitle("frequency in pi units"); ytitle("decibels"); subplot(2,2,4); plot(w/pi,grd); title("Group Delay")xtitle("frequency in pi units"); ytitle("Samples");
댓글목록
등록된 댓글이 없습니다.